pub struct HttpFetchRequest {
pub method: String,
pub url: String,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub timeout_ms: Option<u32>,
pub follow_redirects: Option<u32>,
pub verify_tls: Option<bool>,
}Expand description
Outbound HTTP request data passed to HttpFetchBackend.
Mirrors the WIT http-fetch-request record exactly.
Fields§
§method: String§url: String§headers: Vec<(String, String)>§body: Vec<u8>§timeout_ms: Option<u32>§follow_redirects: Option<u32>§verify_tls: Option<bool>Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpFetchRequest
impl RefUnwindSafe for HttpFetchRequest
impl Send for HttpFetchRequest
impl Sync for HttpFetchRequest
impl Unpin for HttpFetchRequest
impl UnsafeUnpin for HttpFetchRequest
impl UnwindSafe for HttpFetchRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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