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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user