Module actix_web::client [−][src]
Http client api
use actix_web::{actix, client}; fn main() { actix::run( || client::get("http://www.rust-lang.org") // <- Create request builder .header("User-Agent", "Actix-web") .finish().unwrap() .send() // <- Send http request .map_err(|_| ()) .and_then(|response| { // <- server http response println!("Response: {:?}", response); Ok(()) }) ); }
Structs
ClientConnector |
|
ClientConnectorStats |
Client connector usage stats |
ClientRequest |
An HTTP Client Request |
ClientRequestBuilder |
An HTTP Client request builder |
ClientResponse |
An HTTP Client response |
Connect |
|
Connection |
HTTP client connection |
Pause |
Pause connection process for |
Resume |
Resume connection process for |
SendRequest |
|
Enums
ClientConnectorError |
A set of errors that can occur while connecting to an HTTP host |
SendRequestError |
A set of errors that can occur during request sending and response reading |
Functions
delete |
Create request builder for |
get |
Create request builder for |
head |
Create request builder for |
post |
Create request builder for |
put |
Create request builder for |