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

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