requests

  • get(url: &str) -> std::io::Result<String> Sends a GET request to the specified URL and returns the response as a String.

  • post(url: &str, body: &str) -> std::io::Result<String> Sends a POST request to the specified URL with the provided body and returns the response as a String.

Last updated