Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handle = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.Method { case "POST": ch := make(chan error, 1) conn := &struct { io.ReadCloser io.Writer }{r.Body, w} rpc.ServeCodec(&scodec{ch, org.NewServerCodec(conn)}) <-ch default: w.Header().Set("Content-Type", "text/plain; charset=utf-8") w.WriteHeader(http.StatusMethodNotAllowed) io.WriteString(w, "405 POST only\n") } })
Handle ...
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.