pub struct HttpFetchOptions {
pub method: HttpFetchMethod,
pub headers: BTreeMap<String, String>,
pub body: Option<Bytes>,
pub timeout_ms: Option<u32>,
}Expand description
Options for the HTTP fetch request, including method, headers, body, and timeout. This struct is serialized and sent to the VM for execution.
Fields§
§method: HttpFetchMethodThe HTTP method to use for the request.
headers: BTreeMap<String, String>Headers to include in the request.
body: Option<Bytes>The body of the request, if any.
timeout_ms: Option<u32>Timeout for the request in milliseconds.
Trait Implementations§
Source§impl Clone for HttpFetchOptions
impl Clone for HttpFetchOptions
Source§fn clone(&self) -> HttpFetchOptions
fn clone(&self) -> HttpFetchOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpFetchOptions
impl Debug for HttpFetchOptions
Source§impl Default for HttpFetchOptions
impl Default for HttpFetchOptions
Source§impl<'de> Deserialize<'de> for HttpFetchOptions
impl<'de> Deserialize<'de> for HttpFetchOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpFetchOptions
impl RefUnwindSafe for HttpFetchOptions
impl Send for HttpFetchOptions
impl Sync for HttpFetchOptions
impl Unpin for HttpFetchOptions
impl UnwindSafe for HttpFetchOptions
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