Struct web::FetchOptions
source · pub struct FetchOptions<'a> {
pub url: &'a str,
pub action: HTTPMethod,
pub body: Option<&'a str>,
pub headers: Option<HashMap<String, String>>,
pub response_type: FetchResponseType,
}
Fields§
§url: &'a str
§action: HTTPMethod
§body: Option<&'a str>
§headers: Option<HashMap<String, String>>
§response_type: FetchResponseType