pub struct WireRequest<B = HttpBody> {
pub method: Method,
pub path: String,
pub query: Option<String>,
pub headers: HeaderMap,
pub body: B,
}Expand description
An HTTP request with five elements.
path and query retain their original percent encoding. query excludes
the leading ?; None and Some("") distinguish an absent and empty query.
Repeated parameters and their order are preserved. The transport adapter
supplies the destination host independently.
B can be raw HttpBody, a decoded JSON body, or parsed Multipart.
GET operations use () for an absent body, not a JSON null body.
Fields§
§method: Method§path: String§query: Option<String>§headers: HeaderMap§body: BTrait Implementations§
Source§impl<B: Debug> Debug for WireRequest<B>
impl<B: Debug> Debug for WireRequest<B>
Source§impl<B: DeclaredFields> DeclaredFields for WireRequest<B>
impl<B: DeclaredFields> DeclaredFields for WireRequest<B>
fn into_declared(self) -> Self
Auto Trait Implementations§
impl<B> Freeze for WireRequest<B>where
B: Freeze,
impl<B> RefUnwindSafe for WireRequest<B>where
B: RefUnwindSafe,
impl<B> Send for WireRequest<B>where
B: Send,
impl<B> Sync for WireRequest<B>where
B: Sync,
impl<B> Unpin for WireRequest<B>where
B: Unpin,
impl<B> UnsafeUnpin for WireRequest<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for WireRequest<B>where
B: UnwindSafe,
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