Struct tea_sdk::actors::http::HttpRequest
pub struct HttpRequest {
pub method: Method,
pub uri: Uri,
pub version: Version,
pub headers: HeaderMap,
pub body: Vec<u8>,
}
Fields§
§method: Method
§uri: Uri
§version: Version
§headers: HeaderMap
§body: Vec<u8>
Trait Implementations§
§impl Clone for HttpRequest
impl Clone for HttpRequest
§fn clone(&self) -> HttpRequest
fn clone(&self) -> HttpRequest
Returns a copy 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 more§impl Debug for HttpRequest
impl Debug for HttpRequest
§impl<'de> Deserialize<'de> for HttpRequest
impl<'de> Deserialize<'de> for HttpRequest
§fn deserialize<__D>(
__deserializer: __D
) -> Result<HttpRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<HttpRequest, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Request for HttpRequest
impl Request for HttpRequest
type Response = HttpResponse
§impl Serialize for HttpRequest
impl Serialize for HttpRequest
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<B> TryFrom<HttpRequest> for Request<B>where
B: FromHttpBytes,
impl<B> TryFrom<HttpRequest> for Request<B>where B: FromHttpBytes,
§type Error = RuntimeCodec
type Error = RuntimeCodec
The type returned in the event of a conversion error.
§fn try_from(
value: HttpRequest
) -> Result<Request<B>, <Request<B> as TryFrom<HttpRequest>>::Error>
fn try_from( value: HttpRequest ) -> Result<Request<B>, <Request<B> as TryFrom<HttpRequest>>::Error>
Performs the conversion.
§impl<B> TryFrom<Request<B>> for HttpRequestwhere
B: IntoHttpBytes,
impl<B> TryFrom<Request<B>> for HttpRequestwhere B: IntoHttpBytes,
§type Error = RuntimeCodec
type Error = RuntimeCodec
The type returned in the event of a conversion error.
§fn try_from(
value: Request<B>
) -> Result<HttpRequest, <HttpRequest as TryFrom<Request<B>>>::Error>
fn try_from( value: Request<B> ) -> Result<HttpRequest, <HttpRequest as TryFrom<Request<B>>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
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