Skip to main content

client

Function client 

Source
pub fn client(timeout: Duration) -> Result<Client, String>
Expand description

A client with timeout covering the whole request.

The one place a proxy, a user agent or a redirect policy would ever go. There used to be two of these, differing by accident rather than by choice.

The error is a String so each caller can map it into its own enum without this module knowing about either.