Expand description
Easy HTTP Request
Easy to send HTTP/HTTPS requests.
Example
use talap::Request;
async fn status(){
let response = Request::get_from_url("https://www.apple.com/").await.unwrap().send().await.unwrap();
assert_eq!(response.status_code,200);
}
More examples are in the examples
directory.
Re-exports
pub extern crate hyper;
pub extern crate hyper_native_tls;
pub extern crate mime;
pub extern crate slash_formatter;
pub extern crate url;
Structs
The http request sender. See
DefaultHttpRequest
or StaticHttpRequest
.Options for
HttpRequest
.The http response.
Enums
A http request body that you want to send.
Errors for
HttpRequest
.The HTTP request method.
Functions
if is ipv4 return true
if is ipv6 return true
Type Definitions
Use strings for query, body and headers.
Use static string slices for query, body and headers.