[go: up one dir, main page]

client

Function client 

Source
pub fn client() -> Client
Expand description

Construct a new Client, capable of sending Requests and running a middleware stack.

ยงExamples

let client = surf::client();

let req = surf::get("https://httpbin.org/get");
let res = client.send(req).await?;