Copy creates a copy of the context that can be safely used outside the request's scope.
()
| 65 | |
| 66 | // Copy creates a copy of the context that can be safely used outside the request's scope. |
| 67 | func (c Context) Copy() Context { |
| 68 | cc := c.Context.Copy() |
| 69 | return Context{Context: cc} |
| 70 | } |
| 71 | |
| 72 | // IsRequestFromAPeer indicates if the current request is from a peer. |
| 73 | func IsRequestFromAPeer(c Context) bool { |
no outgoing calls