Documentation
¶
Index ¶
- func Handle[IN any, OUT any](handlers ...func(*Context, IN) (OUT, error))
- func Run(devMode bool, opts ...config.Option)
- func WithAddress(value string) config.Option
- func WithBasePath(value string) config.Option
- func WithDisableKeepAlive() config.Option
- func WithDisablePreParseMultipartForm() config.Option
- func WithDisablePrintRoute() config.Option
- func WithExitWaitTimeout(value time.Duration) config.Option
- func WithGetOnly() config.Option
- func WithH2C() config.Option
- func WithHandleMethodNotAllowed() config.Option
- func WithIdleTimeout(value time.Duration) config.Option
- func WithKeepAliveTimeout(value time.Duration) config.Option
- func WithMaxKeepBodySize(value int) config.Option
- func WithMaxRequestBodySize(value int) config.Option
- func WithNetwork(value string) config.Option
- func WithNoDefaultContentType() config.Option
- func WithNoDefaultDate() config.Option
- func WithReadBufferSize(value int) config.Option
- func WithReadTime(value time.Duration) config.Option
- func WithRedirectFixedPath() config.Option
- func WithRedirectTrailingSlash() config.Option
- func WithRemoveExtraSlash() config.Option
- func WithStreamRequestBody() config.Option
- func WithTLS(value *tls.Config) config.Option
- func WithUnescapedPathValues() config.Option
- func WithUseRawPath() config.Option
- func WithWriteTimeout(value time.Duration) config.Option
- type Context
- func (ctx *Context) FullPath() string
- func (ctx *Context) Host() []byte
- func (ctx *Context) Identity() Identity
- func (ctx *Context) Path() []byte
- func (ctx *Context) RemoteAddr() net.Addr
- func (ctx *Context) Set(key string, value any)
- func (ctx *Context) SetIdentity(identity Identity)
- func (ctx *Context) Value(key any) any
- type Handler
- type Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAddress ¶
func WithBasePath ¶
func WithDisableKeepAlive ¶
func WithDisablePrintRoute ¶
func WithGetOnly ¶
func WithMaxKeepBodySize ¶
func WithMaxRequestBodySize ¶
func WithNetwork ¶
func WithNoDefaultDate ¶
func WithReadBufferSize ¶
func WithRedirectFixedPath ¶
func WithRemoveExtraSlash ¶
func WithStreamRequestBody ¶
func WithUnescapedPathValues ¶
func WithUseRawPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.