Struct cloudflare::framework::HttpApiClientConfig
source · pub struct HttpApiClientConfig {
pub http_timeout: Duration,
pub default_headers: HeaderMap,
pub resolve_ip: Option<IpAddr>,
}
Expand description
Configuration for the API client. Allows users to customize its behaviour.
Fields§
§http_timeout: Duration
The maximum time limit for an API request. If a request takes longer than this, it will be cancelled. Note: this configuration has no effect when the target is wasm32.
default_headers: HeaderMap
A default set of HTTP headers which will be sent with each API request.
resolve_ip: Option<IpAddr>
A specific IP to use when establishing a connection Note: this configuration has no effect when the target is wasm32.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HttpApiClientConfig
impl Send for HttpApiClientConfig
impl Sync for HttpApiClientConfig
impl Unpin for HttpApiClientConfig
impl UnwindSafe for HttpApiClientConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more