pub(crate) enum Server {}
Implementations§
source§impl Server
impl Server
fn can_have_body(method: &Option<Method>, status: StatusCode) -> bool
fn can_chunked(method: &Option<Method>, status: StatusCode) -> bool
fn can_have_content_length(method: &Option<Method>, status: StatusCode) -> bool
fn can_have_implicit_zero_content_length( method: &Option<Method>, status: StatusCode, ) -> bool
fn encode_headers_with_lower_case( msg: Encode<'_, StatusCode>, dst: &mut Vec<u8>, is_last: bool, orig_len: usize, wrote_len: bool, ) -> Result<Encoder>
fn encode_headers_with_original_case( msg: Encode<'_, StatusCode>, dst: &mut Vec<u8>, is_last: bool, orig_len: usize, wrote_len: bool, orig_headers: &HeaderCaseMap, ) -> Result<Encoder>
fn encode_headers<W>(
msg: Encode<'_, StatusCode>,
dst: &mut Vec<u8>,
is_last: bool,
orig_len: usize,
wrote_len: bool,
header_name_writer: W,
) -> Result<Encoder>where
W: HeaderNameWriter,
Trait Implementations§
source§impl Http1Transaction for Server
impl Http1Transaction for Server
type Incoming = RequestLine
type Outgoing = StatusCode
const LOG: &'static str = "{role=server}"
fn parse( buf: &mut BytesMut, ctx: ParseContext<'_>, ) -> Result<Option<ParsedMessage<RequestLine>>, Parse>
fn encode(msg: Encode<'_, Self::Outgoing>, dst: &mut Vec<u8>) -> Result<Encoder>
fn on_error(err: &Error) -> Option<MessageHead<Self::Outgoing>>
fn is_server() -> bool
fn update_date()
fn is_client() -> bool
fn should_error_on_parse_eof() -> bool
fn should_read_first() -> bool
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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