Trait http_typed::Request
source · pub trait Request: Sized {
type Serializer: SerializeBody<Self>;
type Response;
// Required methods
fn method(&self) -> HttpMethod;
fn path(&self) -> String;
}
Required Associated Types§
sourcetype Serializer: SerializeBody<Self>
type Serializer: SerializeBody<Self>
Specify a pre-defined approach to serialize a request body. For example:
- SerdeJson
- NoBody
Required Methods§
sourcefn method(&self) -> HttpMethod
fn method(&self) -> HttpMethod
HTTP method that the request will be sent with