Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterHook ¶
type AfterHook func(response HTTPResponse) HTTPResponse
type BeforeHook ¶
type HTTPMiddleware ¶
func NewHTTPAfterMiddleware ¶
func NewHTTPAfterMiddleware(after AfterHook) HTTPMiddleware
func NewHTTPBeforeMiddleware ¶
func NewHTTPBeforeMiddleware(before BeforeHook) HTTPMiddleware
func NewHTTPMiddleware ¶
func NewHTTPMiddleware(before BeforeHook, after AfterHook) HTTPMiddleware
type HTTPResponse ¶
func NewHTTPResponse ¶
func NewHTTPResponse(body []byte, code int) HTTPResponse
Click to show internal directories.
Click to hide internal directories.