Function get_http

Source
pub fn get_http<A: ToUrl>(url: A) -> String
Expand description

The basic implementation of the HTTP GET method.

This can be called on anything that implements the ToUrl Trait.

This library provides implementation of the ToUrl trait for String, &str, URL and &URL.

This function returns the response body as a String.