1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-30 16:27:04 +00:00

add 'Context.IsSSL() bool'

Former-commit-id: 494394ecb3a44dc69d95893eae024efff0ff3612
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-11 16:08:35 +03:00
parent 9f4f4a2f49
commit d304086c32
4 changed files with 53 additions and 2 deletions

View File

@@ -417,6 +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.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.