pub struct HttpOptions {
pub base_url: Option<String>,
pub api_version: Option<String>,
pub headers: HeaderMap,
pub timeout: Option<Duration>,
pub extras_request_provider: Option<ExtrasRequestProvider>,
}Expand description
Per-request HTTP options.
The Debug output lists header names only; header values are redacted.
Fields§
§base_url: Option<String>Overrides the backend base URL.
api_version: Option<String>Overrides the API version (e.g. v1beta).
headers: HeaderMapExtra headers sent with the request.
timeout: Option<Duration>Request timeout.
extras_request_provider: Option<ExtrasRequestProvider>Hook applied to the JSON request body before sending.
Trait Implementations§
Source§impl Clone for HttpOptions
impl Clone for HttpOptions
Source§impl Debug for HttpOptions
impl Debug for HttpOptions
Auto Trait Implementations§
impl !RefUnwindSafe for HttpOptions
impl !UnwindSafe for HttpOptions
impl Forget for HttpOptions
impl Freeze for HttpOptions
impl Move for HttpOptions
impl Send for HttpOptions
impl Sync for HttpOptions
impl Unpin for HttpOptions
impl UnsafeUnpin for HttpOptions
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