Skip to main content

fetch_http

Function fetch_http 

Source
pub fn fetch_http(host: &str, path: &str) -> Result<String>
Expand description

Fetch a page over plain HTTP.

§Arguments

  • host - The domain name of the server.
  • path - The path to fetch (e.g., “/index.html”).

§Returns

Body of the HTTP response if successful.