func (h Handler) HandleFunc(path string, fn func(w http.ResponseWriter, r *http.Request)) {
	h.mux.HandleFunc(path, fn)
}
HandleFunc registers a function to handle a request path with.
package sdk
import (
	"fmt"
	"net"
	"net/http"
	"os"
)
const activatePath = "/Plugin.Activate"
type Handler struct {
	mux *http.ServeMux
}
func NewHandler(manifest string) Handler {
	mux := http.NewServeMux()
	mux.HandleFunc(activatePath, func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Content-Type", DefaultContentTypeV1_1)
		fmt.Fprintln(w, manifest)
	})
	return Handler{mux: mux}
}
func (h Handler) Serve(l net.Listener) error {
	server := http.Server{
		Addr:    l.Addr().String(),
		Handler: h.mux,
	}
	return server.Serve(l)
}
func (h Handler) ServeTCP(pluginName, addr string) error {
	return h.listenAndServe("tcp", addr, pluginName)
}
func (h Handler) ServeUnix(systemGroup, addr string) error {
	return h.listenAndServe("unix", addr, systemGroup)
}