Former-commit-id: eca4c3d2962cc4e0b6108144a7b59f2519b531da
This commit is contained in:
Gerasimos (Makis) Maropoulos 2019-02-02 04:56:32 +02:00
parent 2cdbe17bd5
commit d30f17eb3f

View File

@ -122,7 +122,7 @@ type Context interface {
// so the changes will have affect without a full override.
// Usage: you use a native http handler which uses the standard "context" package
// to get values instead of the Iris' Context#Values():
// r := c.Request()
// r := ctx.Request()
// stdCtx := context.WithValue(r.Context(), key, val)
// ctx.ResetRequest(r.WithContext(stdCtx)).
ResetRequest(r *http.Request)
@ -1088,7 +1088,7 @@ func (ctx *context) Request() *http.Request {
// so the changes will have affect without a full override.
// Usage: you use a native http handler which uses the standard "context" package
// to get values instead of the Iris' Context#Values():
// r := c.Request()
// r := ctx.Request()
// stdCtx := context.WithValue(r.Context(), key, val)
// ctx.ResetRequest(r.WithContext(stdCtx)).
func (ctx *context) ResetRequest(r *http.Request) {