Enum sozu_lib::parser::http11::RequestState [−][src]
pub enum RequestState {
Initial,
Error(Option<RRequestLine>, Option<Connection>, Option<Host>, Option<LengthInformation>, Option<Chunk>),
HasRequestLine(RRequestLine, Connection),
HasHost(RRequestLine, Connection, Host),
HasLength(RRequestLine, Connection, LengthInformation),
HasHostAndLength(RRequestLine, Connection, Host, LengthInformation),
Request(RRequestLine, Connection, Host),
RequestWithBody(RRequestLine, Connection, Host, usize),
RequestWithBodyChunks(RRequestLine, Connection, Host, Chunk),
}Variants
InitialError(Option<RRequestLine>, Option<Connection>, Option<Host>, Option<LengthInformation>, Option<Chunk>)HasRequestLine(RRequestLine, Connection)HasHost(RRequestLine, Connection, Host)HasLength(RRequestLine, Connection, LengthInformation)HasHostAndLength(RRequestLine, Connection, Host, LengthInformation)Request(RRequestLine, Connection, Host)RequestWithBody(RRequestLine, Connection, Host, usize)RequestWithBodyChunks(RRequestLine, Connection, Host, Chunk)
Methods
impl RequestState[src]
impl RequestStatepub fn into_error(self) -> RequestState[src]
pub fn into_error(self) -> RequestStatepub fn has_host(&self) -> bool[src]
pub fn has_host(&self) -> boolpub fn is_proxying(&self) -> bool[src]
pub fn is_proxying(&self) -> boolpub fn is_head(&self) -> bool[src]
pub fn is_head(&self) -> boolpub fn get_host(&self) -> Option<String>[src]
pub fn get_host(&self) -> Option<String>pub fn get_uri(&self) -> Option<String>[src]
pub fn get_uri(&self) -> Option<String>pub fn get_request_line(&self) -> Option<RRequestLine>[src]
pub fn get_request_line(&self) -> Option<RRequestLine>pub fn get_keep_alive(&self) -> Option<Connection>[src]
pub fn get_keep_alive(&self) -> Option<Connection>pub fn get_mut_connection(&mut self) -> Option<&mut Connection>[src]
pub fn get_mut_connection(&mut self) -> Option<&mut Connection>pub fn should_copy(&self, position: usize) -> Option<usize>[src]
pub fn should_copy(&self, position: usize) -> Option<usize>pub fn should_keep_alive(&self) -> bool[src]
pub fn should_keep_alive(&self) -> boolpub fn should_chunk(&self) -> bool[src]
pub fn should_chunk(&self) -> boolTrait Implementations
impl Debug for RequestState[src]
impl Debug for RequestStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for RequestState[src]
impl Clone for RequestStatefn clone(&self) -> RequestState[src]
fn clone(&self) -> RequestStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for RequestState[src]
impl PartialEq for RequestStatefn eq(&self, other: &RequestState) -> bool[src]
fn eq(&self, other: &RequestState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RequestState) -> bool[src]
fn ne(&self, other: &RequestState) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for RequestState
impl Send for RequestStateimpl Sync for RequestState
impl Sync for RequestState