WithHeaders sets a function to customize response headers.
(fn func(http.Header))
| 71 | |
| 72 | // WithHeaders sets a function to customize response headers. |
| 73 | func 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. |