Struct tungstenite::handshake::server::Request [−][src]
Request from the client.
Fields
path: String
Path part of the URL.
headers: Headers
HTTP headers.
Methods
impl Request[src]
impl Requestpub fn reply(
&self,
extra_headers: Option<Vec<(String, String)>>
) -> Result<Vec<u8>>[src]
pub fn reply(
&self,
extra_headers: Option<Vec<(String, String)>>
) -> Result<Vec<u8>>Reply to the response.
Trait Implementations
impl Debug for Request[src]
impl Debug for Requestfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'h, 'b: 'h> FromHttparse<Request<'h, 'b>> for Request[src]
impl<'h, 'b: 'h> FromHttparse<Request<'h, 'b>> for Requestfn from_httparse(raw: Request<'h, 'b>) -> Result<Self>[src]
fn from_httparse(raw: Request<'h, 'b>) -> Result<Self>Convert raw object into parsed HTTP headers.