1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 11:17:03 +00:00

add 'HostProxyHeaders' Configuration field

Former-commit-id: 067360d8db638d6f268d154b50fd872c465eaf1a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-11 18:52:35 +03:00
parent 12e61f4456
commit 78a45163e3
6 changed files with 98 additions and 12 deletions

View File

@@ -417,7 +417,7 @@ New Package-level Variables:
New Context Methods:
- `Context.IsSSL() bool` reports whether the request is under HTTPS SSL (New `Configuration.SSLProxyHeaders` field too).
- `Context.IsSSL() bool` reports whether the request is under HTTPS SSL (New `Configuration.SSLProxyHeaders` and `HostProxyHeaders` fields too).
- `Context.GzipReader(enable bool)` method and `iris.GzipReader` middleware to enable future request read body calls to decompress data using gzip, [example](_examples/request-body/read-gzip).
- `Context.RegisterDependency(v interface{})` and `Context.RemoveDependency(typ reflect.Type)` to register/remove struct dependencies on serve-time through a middleware.
- `Context.SetID(id interface{})` and `Context.GetID() interface{}` added to register a custom unique indetifier to the Context, if necessary.