Currently, the RequestHeaders and ResponseHeaders interfaces don't provide a straightforward way to retrieve a list of all headers. This functionality would be beneficial for debugging, logging, and processing purposes.
Maybe something like:
type RequestHeaders interface {
All() map[string]HeaderValue
...
}
or
type Header struct {
Key string
HeaderValue
}
type RequestHeaders interface {
All() []Header
...
}
Currently, the
RequestHeaders
andResponseHeaders
interfaces don't provide a straightforward way to retrieve a list of all headers. This functionality would be beneficial for debugging, logging, and processing purposes.Maybe something like:
or