Documentation
¶
Index ¶
- Constants
- Variables
- func Path(req *http.Request) string
- func Pattern(name env.Name, pattern string) string
- func Protocols() *http.Protocols
- func StatusText(code int) string
- func Transport(cfg *tls.Config) *http.Transport
- type Client
- type Handler
- type HandlerFunc
- type Header
- type Request
- type Response
- type ResponseWriter
- type RoundTripper
- type ServeMux
- type Server
Constants ¶
View Source
const ( // MethodDelete is an alias of http.MethodDelete. MethodDelete = http.MethodDelete // MethodGet is an alias of http.MethodGet. MethodGet = http.MethodGet // MethodPatch is an alias of http.MethodPatch. MethodPatch = http.MethodPatch // MethodPost is an alias of http.MethodPost. MethodPost = http.MethodPost // MethodPut is an alias of http.MethodPut. MethodPut = http.MethodPut // StatusBadRequest is an alias of http.StatusBadRequest. StatusBadRequest = http.StatusBadRequest // StatusConflict is an alias of http.StatusConflict. StatusConflict = http.StatusConflict // StatusForbidden is an alias of http.StatusForbidden. StatusForbidden = http.StatusForbidden // StatusGatewayTimeout is an alias of http.StatusGatewayTimeout. StatusGatewayTimeout = http.StatusGatewayTimeout // StatusOK is an alias of http.StatusOK. StatusOK = http.StatusOK // StatusInternalServerError is an alias of http.StatusInternalServerError. StatusInternalServerError = http.StatusInternalServerError // StatusNotFound is an alias of http.StatusNotFound. StatusNotFound = http.StatusNotFound // StatusNotImplemented is an alias of http.StatusNotImplemented. StatusNotImplemented = http.StatusNotImplemented StatusServiceUnavailable = http.StatusServiceUnavailable // StatusTooManyRequests is an alias of http.StatusTooManyRequests. StatusTooManyRequests = http.StatusTooManyRequests StatusUnauthorized = http.StatusUnauthorized )
Variables ¶
View Source
var ( // DefaultTransport is an alias for http.DefaultTransport. DefaultTransport = http.DefaultTransport // ErrUseLastResponse is an alias for http.ErrUseLastResponse. ErrUseLastResponse = http.ErrUseLastResponse // ErrServerClosed is an alias for http.ErrServerClosed. ErrServerClosed = http.ErrServerClosed // NoBody is an alias for http.NoBody. NoBody = http.NoBody )
Functions ¶
func StatusText ¶ added in v2.21.0
StatusText is an alias for http.StatusText.
Types ¶
type HandlerFunc ¶ added in v2.22.0
type HandlerFunc = http.HandlerFunc
HandlerFunc is an alias for http.HandlerFunc.
type ResponseWriter ¶ added in v2.22.0
type ResponseWriter = http.ResponseWriter
ResponseWriter is an alias for http.ResponseWriter.
type RoundTripper ¶ added in v2.21.0
type RoundTripper = http.RoundTripper
RoundTripper is an alias for http.RoundTripper.
type ServeMux ¶ added in v2.5.0
ServeMux is an alias for http.ServeMux.
func NewServeMux ¶ added in v2.7.0
func NewServeMux() *ServeMux
NewServeMux is an alias for http.NewServeMux.
Click to show internal directories.
Click to hide internal directories.