Headers represents the configuration for HTTP headers.
| 51 | |
| 52 | // Headers represents the configuration for HTTP headers. |
| 53 | type Headers struct { |
| 54 | Headers map[string]Header `yaml:",inline"` |
| 55 | } |
| 56 | |
| 57 | func (h Headers) MarshalJSON() ([]byte, error) { |
| 58 | // Inline the Headers map when serializing JSON because json encoder doesn't support "inline" directive. |
nothing calls this directly
no outgoing calls
no test coverage detected