Method
new
(scheme: &str, hostname: &str, path: &str, port: u16)
Source from the content-addressed store, hash-verified
| 49 | /// Create a URL from its components. |
| 50 | #[must_use] |
| 51 | pub fn new(scheme: &str, hostname: &str, path: &str, port: u16) -> Self { |
| 52 | Self { |
| 53 | scheme: Some(scheme.to_string()), |
| 54 | hostname: Some(hostname.to_string()), |
| 55 | path: Some(path.to_string()), |
| 56 | port: Some(port), |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /// Format as a display string. |
| 61 | /// |
Callers
nothing calls this directly
Tested by
no test coverage detected