SetAgentRequested sets up the session context so that AgentRequested returns true.
(ctx Context)
| 25 | // SetAgentRequested sets up the session context so that AgentRequested |
| 26 | // returns true. |
| 27 | func SetAgentRequested(ctx Context) { |
| 28 | ctx.SetValue(contextKeyAgentRequest, true) |
| 29 | } |
| 30 | |
| 31 | // AgentRequested returns true if the client requested agent forwarding. |
| 32 | func AgentRequested(sess Session) bool { |
no test coverage detected
searching dependent graphs…