| 56 | const DEFINE_TIME_OUT: u64 = 600; |
| 57 | |
| 58 | pub trait IntoUrl { |
| 59 | |
| 60 | // Besides parsing as a valid `Url`, the `Url` must be a valid |
| 61 | // `http::Uri`, in that it makes sense to use in a network request. |
| 62 | fn into_url(self) -> Result<Url, ProxyError>; |
| 63 | |
| 64 | fn as_str(&self) -> &str; |
| 65 | } |
| 66 | |
| 67 | impl IntoUrl for Url { |
| 68 | fn into_url(self) -> Result<Url, ProxyError> { |
nothing calls this directly
no outgoing calls
no test coverage detected