☰
ServerTransaction
Aliased type
Methods
can_chunked
can_have_body
can_have_content_length
can_have_implicit_zero_content_length
encode_headers
encode_headers_with_lower_case
encode_headers_with_original_case
Trait Implementations
Http1Transaction
In hyper::proto::h1
?
Type Alias
hyper
::
proto
::
h1
::
ServerTransaction
source
·
[
−
]
pub(crate) type ServerTransaction =
Server
;
Aliased Type
§
enum ServerTransaction {}
Variants
§
Implementations
§
source
§
impl
Server
source
fn
can_have_body
(method: &
Option
<
Method
>, status:
StatusCode
) ->
bool
source
fn
can_chunked
(method: &
Option
<
Method
>, status:
StatusCode
) ->
bool
source
fn
can_have_content_length
(method: &
Option
<
Method
>, status:
StatusCode
) ->
bool
source
fn
can_have_implicit_zero_content_length
( method: &
Option
<
Method
>, status:
StatusCode
) ->
bool
source
fn
encode_headers_with_lower_case
( msg:
Encode
<'_,
StatusCode
>, dst: &mut
Vec
<
u8
>, is_last:
bool
, orig_len:
usize
, wrote_len:
bool
) ->
Result
<
Encoder
>
source
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
>
source
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
§
type
Incoming
=
RequestLine
§
type
Outgoing
=
StatusCode
source
§
const
LOG
: &'static
str
= "{role=server}"
source
§
fn
parse
( buf: &mut
BytesMut
, ctx:
ParseContext
<'_> ) ->
Result
<
Option
<
ParsedMessage
<
RequestLine
>>,
Parse
>
source
§
fn
encode
(msg:
Encode
<'_, Self::
Outgoing
>, dst: &mut
Vec
<
u8
>) ->
Result
<
Encoder
>
source
§
fn
on_error
(err: &
Error
) ->
Option
<
MessageHead
<Self::
Outgoing
>>
source
§
fn
is_server
() ->
bool
source
§
fn
update_date
()
source
§
fn
is_client
() ->
bool
source
§
fn
should_error_on_parse_eof
() ->
bool
source
§
fn
should_read_first
() ->
bool