pub struct RequestHeader {
pub provider: ProviderId,
pub session: u64,
pub content_type: BodyType,
pub accept_type: BodyType,
pub auth_type: AuthType,
pub opcode: Opcode,
}
Expand description
A native representation of the request header.
Fields that are not relevant for application development (e.g. magic number) are not copied across from the raw header.
Fields§
§provider: ProviderId
Provider ID value
session: u64
Session handle
content_type: BodyType
Content type: defines how the request body should be processed.
accept_type: BodyType
Accept type: defines how the service should provide its response.
auth_type: AuthType
Authentication type.
opcode: Opcode
Opcode of the operation to perform.
Trait Implementations§
Source§impl Clone for RequestHeader
impl Clone for RequestHeader
Source§fn clone(&self) -> RequestHeader
fn clone(&self) -> RequestHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RequestHeader
impl Debug for RequestHeader
Source§impl From<RequestHeader> for ResponseHeader
Conversion from RequestHeader
to ResponseHeader
is useful for
when reversing data flow, from handling a request to handling a response.
impl From<RequestHeader> for ResponseHeader
Conversion from RequestHeader
to ResponseHeader
is useful for
when reversing data flow, from handling a request to handling a response.
Source§fn from(req_hdr: RequestHeader) -> ResponseHeader
fn from(req_hdr: RequestHeader) -> ResponseHeader
Source§impl From<RequestHeader> for WireHeader
Conversion from native to raw request header.
impl From<RequestHeader> for WireHeader
Conversion from native to raw request header.
This is required in order to bring the contents of the header in a state which can be serialized.
Source§fn from(header: RequestHeader) -> Self
fn from(header: RequestHeader) -> Self
Source§impl PartialEq for RequestHeader
impl PartialEq for RequestHeader
Source§impl TryFrom<WireHeader> for RequestHeader
Conversion from the raw to native request header.
impl TryFrom<WireHeader> for RequestHeader
Conversion from the raw to native request header.
This conversion must be done before a Request
value can be populated.