Enum sozu_lib::parser::http11::ResponseState
[−]
[src]
pub enum ResponseState {
Initial,
Error(ErrorState),
HasStatusLine(RStatusLine, Connection),
HasUpgrade(RStatusLine, Connection, UpgradeProtocol),
HasLength(RStatusLine, Connection, LengthInformation),
Response(RStatusLine, Connection),
ResponseUpgrade(RStatusLine, Connection, UpgradeProtocol),
ResponseWithBody(RStatusLine, Connection, usize),
ResponseWithBodyChunks(RStatusLine, Connection, Chunk),
}Variants
InitialError(ErrorState)HasStatusLine(RStatusLine, Connection)HasUpgrade(RStatusLine, Connection, UpgradeProtocol)HasLength(RStatusLine, Connection, LengthInformation)Response(RStatusLine, Connection)ResponseUpgrade(RStatusLine, Connection, UpgradeProtocol)ResponseWithBody(RStatusLine, Connection, usize)ResponseWithBodyChunks(RStatusLine, Connection, Chunk)Methods
impl ResponseState[src]
fn is_proxying(&self) -> bool
fn get_status_line(&self) -> Option<RStatusLine>
fn get_keep_alive(&self) -> Option<Connection>
fn should_copy(&self, position: usize) -> Option<usize>
fn should_keep_alive(&self) -> bool
fn should_chunk(&self) -> bool
Trait Implementations
impl Debug for ResponseState[src]
impl Clone for ResponseState[src]
fn clone(&self) -> ResponseState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for ResponseState[src]
fn eq(&self, __arg_0: &ResponseState) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ResponseState) -> bool
This method tests for !=.