MCPcopy
hub / github.com/elastic/go-elasticsearch / WithHeaders

Function WithHeaders

_examples/interceptor/internal/fake/server.go:73–77  ·  view source on GitHub ↗

WithHeaders sets a function to customize response headers.

(fn func(http.Header))

Source from the content-addressed store, hash-verified

71
72// WithHeaders sets a function to customize response headers.
73func WithHeaders(fn func(http.Header)) Option {
74 return func(c *Config) {
75 c.SetHeaders = fn
76 }
77}
78
79// WithMiddleware wraps the default handler with custom middleware.
80// This allows full control over request/response flow.

Callers 4

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected