MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / NewFactory

Function NewFactory

server/responsewriter/factory.go:10–16  ·  view source on GitHub ↗
(config *Config)

Source from the content-addressed store, hash-verified

8}
9
10func NewFactory(config *Config) (*Factory, error) {
11 if err := config.Validate(); err != nil {
12 return nil, err
13 }
14
15 return &Factory{config}, nil
16}
17
18// NewWriter wraps [http.ResponseWriter] into [Writer].
19func (f *Factory) NewWriter(rw http.ResponseWriter) *Writer {

Callers 4

SetupSuiteMethod · 0.92
TestHealthHandlerFunction · 0.92
NewRouterFunction · 0.92
TestHeaderCasesMethod · 0.92

Calls 1

ValidateMethod · 0.45

Tested by 3

SetupSuiteMethod · 0.74
TestHealthHandlerFunction · 0.74
TestHeaderCasesMethod · 0.74