Versions in this module Expand all Collapse all v0 v0.2.0 Mar 9, 2021 v0.1.0 Nov 8, 2018 Changes in this version + var DefaultServeMux = NewServeMux() + func Handle(pattern string, handler Handler) + func HandleFunc(pattern string, handler func(ResponseWriter, *Request)) + func ListenAndServe(addr string, handler Handler) error + func ListenAndServeTLS(addr, cert, key string, handler Handler) error + func NewBridgedResponseWriter(w ResponseWriter) http.ResponseWriter + func NewChunkedWriter(w io.Writer) io.WriteCloser + func NotFound(w ResponseWriter, r *Request) + func Redirect(w ResponseWriter, r *Request, redirectURL string, code int) + func Serve(l net.Listener, handler Handler) error + func ServeLocally(w ResponseWriter, req *Request) + func ServeLocallyFromHandler(w ResponseWriter, req *Request, mux http.Handler) + func StatusText(code int) string + type Handler interface + ServeICAP func(ResponseWriter, *Request) + func NotFoundHandler() Handler + func RedirectHandler(redirectURL string, code int) Handler + type HandlerFunc func(ResponseWriter, *Request) + func (f HandlerFunc) ServeICAP(w ResponseWriter, r *Request) + type Request struct + Header textproto.MIMEHeader + Method string + Preview []byte + Proto string + RawURL string + RemoteAddr string + Request *http.Request + Response *http.Response + URL *url.URL + func ReadRequest(b *bufio.ReadWriter) (req *Request, err error) + type ResponseWriter interface + Header func() http.Header + Write func([]byte) (int, error) + WriteHeader func(code int, httpMessage interface{}, hasBody bool) + WriteRaw func(string) + type ServeMux struct + func NewServeMux() *ServeMux + func (mux *ServeMux) Handle(pattern string, handler Handler) + func (mux *ServeMux) HandleFunc(pattern string, handler func(ResponseWriter, *Request)) + func (mux *ServeMux) ServeICAP(w ResponseWriter, r *Request) + type Server struct + Addr string + DebugLevel int + Handler Handler + ReadTimeout time.Duration + WriteTimeout time.Duration + func (srv *Server) ListenAndServe() error + func (srv *Server) ListenAndServeTLS(cert, key string) error + func (srv *Server) Serve(l net.Listener) error