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 and redirects disabled.

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. Neither caller follows redirects: the configured URL is the exact origin that may receive its request, and the model listing carries a credential.

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