Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Client *http.Client URL *url.URL Header http.Header MaxResponseBodySize int64 }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(opts ...HandlerOption) (h *Handler)
func (*Handler) Handle ¶
func (h *Handler) Handle(pattern string, opts ...HandlerOption) *PatternHandler
type HandlerOption ¶
type HandlerOption interface {
// contains filtered or unexported methods
}
func WithMaxRequestBodySize ¶
func WithMaxRequestBodySize(maxRequestBodySize int64) HandlerOption
func WithMiddleware ¶
func WithMiddleware(middleware ...DoFunc) HandlerOption
func WithOnError ¶
func WithOnError(onError func(error, *http.Request)) HandlerOption
type PatternHandler ¶
type PatternHandler struct {
// contains filtered or unexported fields
}
func (*PatternHandler) Register ¶
func (h *PatternHandler) Register(method string, in interface{}, do DoFunc, opts ...HandlerOption) *PatternHandler
func (*PatternHandler) ServeHTTP ¶
func (h *PatternHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.