pub async fn page_content(
connector: &TlsConnector,
parts: &Parts,
) -> Result<Jump, Box<dyn Error>>Expand description
Uses the given TLS connector and the URL parts to retrieve the HTML page content or the next location in case of a redirect.
HTTP URL conforms to the syntax of a generic URI. The URI generic syntax consists of a hierarchical sequence of five components:
URI = scheme:[//authority]path[?query][#fragment] authority = [userinfo@]host[:port] HTTP URL = URI
The TCP stream, HTTP stream, and TLS stream each expect a different subset of a URL. TCP takes localhost:8080, HTTP takes http://localhost:8080/foo/bar, TLS takes localhost.