Implement log proxy handler

**What**
- Implement log handler method that will hijack the connection and clear
timeouts to allow long lived streams
- Proxies requests to the logs provider and returns the response
unmodified

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
Lucas Roesler
2019-03-10 14:34:45 +01:00
committed by Alex Ellis
parent 3c4077f3df
commit e7e91ecd15
5 changed files with 158 additions and 0 deletions

View File

@ -155,6 +155,10 @@ func copyHeaders(destination http.Header, source *http.Header) {
copy(vClone, v)
(destination)[k] = vClone
}
for _, h := range hopHeaders {
destination.Del(h)
}
}
func deleteHeaders(target *http.Header, exclude *[]string) {