Documentation
¶
Index ¶
- type RequestHandler
- type UncorsRequestHandlerOption
- func WithFileSystem(fs afero.Fs) UncorsRequestHandlerOption
- func WithHTTPClient(client contracts.HTTPClient) UncorsRequestHandlerOption
- func WithLogger(logger contracts.Logger) UncorsRequestHandlerOption
- func WithMappings(mappings config.Mappings) UncorsRequestHandlerOption
- func WithURLReplacerFactory(replacerFactory contracts.URLReplacerFactory) UncorsRequestHandlerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestHandler ¶
type RequestHandler struct {
// contains filtered or unexported fields
}
func NewUncorsRequestHandler ¶
func NewUncorsRequestHandler(options ...UncorsRequestHandlerOption) *RequestHandler
func (*RequestHandler) ServeHTTP ¶
func (m *RequestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type UncorsRequestHandlerOption ¶
type UncorsRequestHandlerOption = func(*RequestHandler)
func WithFileSystem ¶
func WithFileSystem(fs afero.Fs) UncorsRequestHandlerOption
func WithHTTPClient ¶
func WithHTTPClient(client contracts.HTTPClient) UncorsRequestHandlerOption
func WithLogger ¶
func WithLogger(logger contracts.Logger) UncorsRequestHandlerOption
func WithMappings ¶
func WithMappings(mappings config.Mappings) UncorsRequestHandlerOption
func WithURLReplacerFactory ¶
func WithURLReplacerFactory(replacerFactory contracts.URLReplacerFactory) UncorsRequestHandlerOption
Source Files
¶
Click to show internal directories.
Click to hide internal directories.