Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseNotCasted = errors.New("received incorrect response writer type")
Functions ¶
func CastToHTTPHandler ¶ added in v0.2.0
Types ¶
type HTTPClient ¶ added in v0.0.8
type Handler ¶ added in v0.2.0
type Handler interface {
ServeHTTP(writer ResponseWriter, request *Request)
}
type HandlerFunc ¶ added in v0.2.0
type HandlerFunc func(ResponseWriter, *Request)
func (HandlerFunc) ServeHTTP ¶ added in v0.2.0
func (f HandlerFunc) ServeHTTP(w ResponseWriter, r *Request)
type Middleware ¶ added in v0.2.0
type ResponseWriter ¶ added in v0.2.0
type ResponseWriter interface { http.ResponseWriter StatusCode() int }
type ResponseWriterWrap ¶ added in v0.2.0
type ResponseWriterWrap struct { Code int http.ResponseWriter }
func WrapResponseWriter ¶ added in v0.2.0
func WrapResponseWriter(writer http.ResponseWriter) *ResponseWriterWrap
func (*ResponseWriterWrap) StatusCode ¶ added in v0.2.0
func (r *ResponseWriterWrap) StatusCode() int
func (*ResponseWriterWrap) WriteHeader ¶ added in v0.2.0
func (r *ResponseWriterWrap) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.