mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-01 15:55:49 +03:00
add OverrideHeadersIn and OverrideHeadersOut support
This is an attempt to address #108 Instead of dedicated support of header`s removal it allows to return a flag indicating plugin's full control over headers. With this flag set, the conductor won't mix response headers with originals but rather will count on a plugin to provide all the headers.
This commit is contained in:
@@ -25,7 +25,9 @@ type Request struct {
|
||||
|
||||
// Response from plugin's handler call
|
||||
type Response struct {
|
||||
StatusCode int
|
||||
HeadersIn http.Header
|
||||
HeadersOut http.Header
|
||||
StatusCode int
|
||||
HeadersIn http.Header
|
||||
HeadersOut http.Header
|
||||
OverrideHeadersIn bool // indicates plugin removing all the original incoming headers
|
||||
OverrideHeadersOut bool // indicates plugin removing all the original outgoing headers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user