GetDialInfo gets the upstream dialing info out of the context, and returns true if there was a valid value; false otherwise.
(ctx context.Context)
| 297 | // GetDialInfo gets the upstream dialing info out of the context, |
| 298 | // and returns true if there was a valid value; false otherwise. |
| 299 | func GetDialInfo(ctx context.Context) (DialInfo, bool) { |
| 300 | dialInfo, ok := caddyhttp.GetVar(ctx, dialInfoVarKey).(DialInfo) |
| 301 | return dialInfo, ok |
| 302 | } |
| 303 | |
| 304 | // hosts is the global repository for hosts that are |
| 305 | // currently in use by active configuration(s). This |
no test coverage detected