Documentation ¶
Index ¶
- type CacheMiddlewareFactory
- type MockHandlerFactory
- type ProxyHandlerFactory
- type RequestHandler
- type RequestHandlerOption
- func WithCacheMiddlewareFactory(factory CacheMiddlewareFactory) RequestHandlerOption
- func WithLogger(logger contracts.Logger) RequestHandlerOption
- func WithMappings(mappings config.Mappings) RequestHandlerOption
- func WithMockHandlerFactory(factory MockHandlerFactory) RequestHandlerOption
- func WithProxyHandlerFactory(factory ProxyHandlerFactory) RequestHandlerOption
- func WithRewriteHandlerFactory(factory RewriteMiddlewareFactory) RequestHandlerOption
- func WithStaticHandlerFactory(factory StaticMiddlewareFactory) RequestHandlerOption
- type RewriteMiddlewareFactory
- type StaticMiddlewareFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheMiddlewareFactory ¶ added in v0.2.0
type CacheMiddlewareFactory = func(globs config.CacheGlobs) contracts.Middleware
type MockHandlerFactory ¶ added in v0.2.0
type ProxyHandlerFactory ¶ added in v0.2.0
type RequestHandler ¶
func NewUncorsRequestHandler ¶
func NewUncorsRequestHandler(options ...RequestHandlerOption) *RequestHandler
func (*RequestHandler) ServeHTTP ¶
func (h *RequestHandler) ServeHTTP(writer contracts.ResponseWriter, request *contracts.Request)
type RequestHandlerOption ¶ added in v0.2.0
type RequestHandlerOption = func(*RequestHandler)
func WithCacheMiddlewareFactory ¶ added in v0.2.0
func WithCacheMiddlewareFactory(factory CacheMiddlewareFactory) RequestHandlerOption
func WithLogger ¶
func WithLogger(logger contracts.Logger) RequestHandlerOption
func WithMappings ¶
func WithMappings(mappings config.Mappings) RequestHandlerOption
func WithMockHandlerFactory ¶ added in v0.2.0
func WithMockHandlerFactory(factory MockHandlerFactory) RequestHandlerOption
func WithProxyHandlerFactory ¶ added in v0.2.0
func WithProxyHandlerFactory(factory ProxyHandlerFactory) RequestHandlerOption
func WithRewriteHandlerFactory ¶ added in v0.4.0
func WithRewriteHandlerFactory(factory RewriteMiddlewareFactory) RequestHandlerOption
func WithStaticHandlerFactory ¶ added in v0.2.0
func WithStaticHandlerFactory(factory StaticMiddlewareFactory) RequestHandlerOption
type RewriteMiddlewareFactory ¶ added in v0.4.0
type RewriteMiddlewareFactory = func(rewrite config.RewritingOption) contracts.Middleware
type StaticMiddlewareFactory ¶ added in v0.2.0
type StaticMiddlewareFactory = func(path string, dir config.StaticDirectory) contracts.Middleware
Source Files ¶
Click to show internal directories.
Click to hide internal directories.