Crate weblib

Source
Expand description

§weblib

§Examples

use weblib::text;

fn main() {
    let url = "https://httpbin.org/get";
    let response = text(url).unwrap();
    println!("{}", response);
}

§License

This project is licensed under the terms of the GPL-3.0 license.

§Author

This library was created by Mac Lawson.

Functions§

basic_auth
Fetches the contents of a URL using HTTP Basic authentication and returns them as a String.
post
Sends a POST request to the specified URL and returns the response as a String.
query
Fetches the contents of a URL and returns them as a String.
request_with_retries
Send a request to the specified URL with retries and a timeout
text
Fetches the contents of a URL and returns them as a String.