[][src]Function nano_get::get

pub fn get<U: ToUrl>(url: U) -> String

This is a unified function for the HTTP GET method.

This calls the http version of GET provided in this crate by default.

If the "https" feature flag is enabled, then this calls the get_https method, if the protocol is https, else it calls the get_http method. The "https" feature flag is NOT enabled by default.

This function is a wrapper around the http/https get methods provided in this crate.

If you require manual control of the method that is called, you should use the specific method.

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