pub struct Intermediate {
pub uri: String,
pub headers: Vec<(&'static str, String)>,
pub body: RequestWrapper,
}
Expand description
As the name implies, this is an intermediate that can be used to construct an http::Request from the data that’s in the Builder. It allows for type-aware inspection of the constructed protocol request, as well as the full construction of the http request (uri, headers, body).
This struct owns all of it’s data, so that they can be moved directly into the constructed http request.
Fields§
§uri: String
The URI for the http request.
headers: Vec<(&'static str, String)>
The http request headers, in key:&str=value:String pairs
body: RequestWrapper
The request body, still in object form as a RequestWrapper
Implementations§
Source§impl Intermediate
impl Intermediate
pub fn serialize_body(&self) -> Result<Vec<u8>>
Trait Implementations§
Source§impl CupRequest for Intermediate
impl CupRequest for Intermediate
Source§impl Debug for Intermediate
impl Debug for Intermediate
Source§impl Display for Intermediate
impl Display for Intermediate
Auto Trait Implementations§
impl Freeze for Intermediate
impl RefUnwindSafe for Intermediate
impl Send for Intermediate
impl Sync for Intermediate
impl Unpin for Intermediate
impl UnwindSafe for Intermediate
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