[−][src]Struct tauri_api::http::HttpRequestOptions
The configuration object of an HTTP request
Fields
method: String
The request method (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, CONNECT or TRACE)
url: String
The request URL
params: Option<HashMap<String, Value>>
The request query params
headers: Option<HashMap<String, Value>>
The request headers
body: Option<Value>
The request body
follow_redirects: Option<bool>
Whether to follow redirects or not
max_redirections: Option<u32>
Max number of redirections to follow
connect_timeout: Option<u64>
Connect timeout for the request
read_timeout: Option<u64>
Read timeout for the request
timeout: Option<u64>
Timeout for the whole request
allow_compression: Option<bool>
Whether the request will announce that it accepts compression
body_type: Option<BodyType>
The body type (defaults to Auto)
response_type: Option<ResponseType>
The response type (defaults to Json)
Trait Implementations
impl<'de> Deserialize<'de> for HttpRequestOptions
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for HttpRequestOptions
impl Send for HttpRequestOptions
impl Sync for HttpRequestOptions
impl Unpin for HttpRequestOptions
impl UnwindSafe for HttpRequestOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,