Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(ctx *HttpRequestContext) HandlerCallback
type HandlerCallback ¶
type HandlerCallback func(w http.ResponseWriter)
type HttpInstance ¶
type HttpInstance struct { Handlers map[Endpoint]Handler Filters []Handler Port int // contains filtered or unexported fields }
func NewHttpInstance ¶
func NewHttpInstance() *HttpInstance
func (*HttpInstance) BlockingServe ¶
func (h *HttpInstance) BlockingServe()
func (*HttpInstance) RegisterFilter ¶
func (h *HttpInstance) RegisterFilter(handler Handler)
func (*HttpInstance) RegisterHandler ¶
func (h *HttpInstance) RegisterHandler(method string, path string, handler Handler)
func (*HttpInstance) WithPort ¶
func (h *HttpInstance) WithPort(port int) *HttpInstance
type HttpRequestContext ¶
Click to show internal directories.
Click to hide internal directories.