pub struct CanisterHttpRequestArgument {
pub url: String,
pub max_response_bytes: Option<u64>,
pub method: HttpMethod,
pub headers: Vec<HttpHeader>,
pub body: Option<Vec<u8>>,
pub transform: Option<TransformType>,
}Expand description
Argument type of http_request.
Fields
url: StringThe requested URL.
max_response_bytes: Option<u64>The maximal size of the response in bytes. If None, 2MiB will be the limit.
method: HttpMethodThe method of HTTP request.
headers: Vec<HttpHeader>List of HTTP request headers and their corresponding values.
body: Option<Vec<u8>>Optionally provide request body.
transform: Option<TransformType>Name of the transform function which is func (http_response) -> (http_response) query.
Trait Implementations
sourceimpl Clone for CanisterHttpRequestArgument
impl Clone for CanisterHttpRequestArgument
sourcefn clone(&self) -> CanisterHttpRequestArgument
fn clone(&self) -> CanisterHttpRequestArgument
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CanisterHttpRequestArgument
impl Debug for CanisterHttpRequestArgument
sourceimpl<'de> Deserialize<'de> for CanisterHttpRequestArgument
impl<'de> Deserialize<'de> for CanisterHttpRequestArgument
sourcefn 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
sourceimpl PartialEq<CanisterHttpRequestArgument> for CanisterHttpRequestArgument
impl PartialEq<CanisterHttpRequestArgument> for CanisterHttpRequestArgument
sourcefn eq(&self, other: &CanisterHttpRequestArgument) -> bool
fn eq(&self, other: &CanisterHttpRequestArgument) -> bool
impl StructuralPartialEq for CanisterHttpRequestArgument
Auto Trait Implementations
impl RefUnwindSafe for CanisterHttpRequestArgument
impl Send for CanisterHttpRequestArgument
impl Sync for CanisterHttpRequestArgument
impl Unpin for CanisterHttpRequestArgument
impl UnwindSafe for CanisterHttpRequestArgument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more