Versions in this module Expand all Collapse all v0 v0.4.1 Apr 29, 2017 Changes in this version + const HeaderAccept + const HeaderAcceptEncoding + const HeaderAcceptLanguage + const HeaderAllow + const HeaderAuthorization + const HeaderCacheControl + const HeaderConnection + const HeaderContentDisposition + const HeaderContentEncoding + const HeaderContentLength + const HeaderContentSecurityPolicy + const HeaderContentType + const HeaderCookie + const HeaderHost + const HeaderIfModifiedSince + const HeaderIfUnmodifiedSince + const HeaderLastModified + const HeaderLocation + const HeaderMethod + const HeaderOrigin + const HeaderReferer + const HeaderServer + const HeaderSetCookie + const HeaderStatus + const HeaderStrictTransportSecurity + const HeaderTransferEncoding + const HeaderUpgrade + const HeaderUserAgent + const HeaderVary + const HeaderWWWAuthenticate + const HeaderXCSRFToken + const HeaderXContentTypeOptions + const HeaderXForwardedFor + const HeaderXForwardedHost + const HeaderXForwardedPort + const HeaderXForwardedProto + const HeaderXForwardedServer + const HeaderXFrameOptions + const HeaderXHTTPMethodOverride + const HeaderXRealIP + const HeaderXRequestID + const HeaderXRequestedWith + const HeaderXXSSProtection + const MethodConnect + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const MethodTrace + const Version + var ContentTypeForm = &ContentType + var ContentTypeHTML = &ContentType + var ContentTypeJSON = &ContentType + var ContentTypeMultipartForm = &ContentType + var ContentTypeOctetStream = &ContentType + var ContentTypePlainText = &ContentType + var ContentTypeXML = &ContentType + var ErrDirListNotAllowed = errors.New("directory listing not allowed") + func Dir(path string, listDir bool) http.FileSystem + type AcceptSpec struct + Params map[string]string + Q float32 + Raw string + Value string + func NegotiateEncoding(req *http.Request) *AcceptSpec + func (a AcceptSpec) GetParam(key string, defaultValue string) string + type AcceptSpecs []AcceptSpec + func ParseAccept(req *http.Request, hdrKey string) AcceptSpecs + func ParseAcceptEncoding(req *http.Request) AcceptSpecs + func (specs AcceptSpecs) Len() int + func (specs AcceptSpecs) Less(i, j int) bool + func (specs AcceptSpecs) MostQualified() *AcceptSpec + func (specs AcceptSpecs) Swap(i, j int) + type ContentType struct + Exts []string + Mime string + Params map[string]string + func NegotiateContentType(req *http.Request) *ContentType + func ParseContentType(req *http.Request) *ContentType + func (c *ContentType) Charset(defaultCharset string) string + func (c *ContentType) IsEqual(contentType string) bool + func (c *ContentType) Raw() string + func (c *ContentType) String() string + func (c *ContentType) Version() string + type FileOnlyFilesystem struct + Fs http.FileSystem + func (fs FileOnlyFilesystem) Open(name string) (http.File, error) + type GzipResponse struct + func (g *GzipResponse) BytesWritten() int + func (g *GzipResponse) Close() error + func (g *GzipResponse) CloseNotify() <-chan bool + func (g *GzipResponse) Flush() + func (g *GzipResponse) Header() http.Header + func (g *GzipResponse) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (g *GzipResponse) Push(target string, opts *http.PushOptions) error + func (g *GzipResponse) Status() int + func (g *GzipResponse) Unwrap() http.ResponseWriter + func (g *GzipResponse) Write(b []byte) (int, error) + func (g *GzipResponse) WriteHeader(code int) + type Locale struct + Language string + Raw string + Region string + func NegotiateLocale(req *http.Request) *Locale + func NewLocale(value string) *Locale + func ToLocale(a *AcceptSpec) *Locale + func (l *Locale) String() string + type Params struct + File map[string][]*multipart.FileHeader + Form url.Values + Path map[string]string + Query url.Values + func (p *Params) FormArrayValue(key string) []string + func (p *Params) FormFile(key string) (multipart.File, *multipart.FileHeader, error) + func (p *Params) FormValue(key string) string + func (p *Params) PathValue(key string) string + func (p *Params) QueryArrayValue(key string) []string + func (p *Params) QueryValue(key string) string + type Request struct + AcceptContentType *ContentType + AcceptEncoding *AcceptSpec + ClientIP string + ContentType *ContentType + Header http.Header + Host string + IsGzipAccepted bool + IsJSONP bool + Locale *Locale + Method string + Params *Params + Path string + Payload []byte + Raw *http.Request + Referer string + Schema string + UserAgent string + func ParseRequest(r *http.Request, req *Request) *Request + func (r *Request) Cookie(name string) (*http.Cookie, error) + func (r *Request) Cookies() []*http.Cookie + func (r *Request) Reset() + type Response struct + func (r *Response) BytesWritten() int + func (r *Response) Close() error + func (r *Response) CloseNotify() <-chan bool + func (r *Response) Flush() + func (r *Response) Header() http.Header + func (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (r *Response) Push(target string, opts *http.PushOptions) error + func (r *Response) Status() int + func (r *Response) Unwrap() http.ResponseWriter + func (r *Response) Write(b []byte) (int, error) + func (r *Response) WriteHeader(code int) + type ResponseWriter interface + BytesWritten func() int + Status func() int + Unwrap func() http.ResponseWriter + func WrapGzipResponseWriter(w http.ResponseWriter, level int) ResponseWriter + func WrapResponseWriter(w http.ResponseWriter) ResponseWriter