pub struct HttpRequest {
pub method: String,
pub path: String,
pub headers: HashMap<String, String>,
pub body: Option<Vec<u8>>,
pub body_stream: Option<HttpRequestBodyStream>,
}Expand description
HTTP request/response types used by the envoy client.
Fields§
§method: String§path: String§headers: HashMap<String, String>§body: Option<Vec<u8>>§body_stream: Option<HttpRequestBodyStream>If the request is streamed, body chunks arrive on this channel.
Auto Trait Implementations§
impl !RefUnwindSafe for HttpRequest
impl !UnwindSafe for HttpRequest
impl Freeze for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnsafeUnpin 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