Mode returns the mode based on the given URL. This is used to allow clients to let the getters decide which mode to use.
(context.Context, *url.URL)
| 43 | // Mode returns the mode based on the given URL. This is used to |
| 44 | // allow clients to let the getters decide which mode to use. |
| 45 | Mode(context.Context, *url.URL) (Mode, error) |
| 46 | |
| 47 | // Detect detects whether the Request.Src matches a known pattern to |
| 48 | // turn it into a proper URL, and also transforms and update Request.Src |
no outgoing calls