mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
minor
Former-commit-id: eca4c3d2962cc4e0b6108144a7b59f2519b531da
This commit is contained in:
parent
2cdbe17bd5
commit
d30f17eb3f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user