pub type Request = Request<Body>;Expand description
HTTP request type.
Aliased Type§
pub struct Request { /* private fields */ }Trait Implementations§
Source§impl ApiOperationPart for Request
Available on crate feature openapi only.
impl ApiOperationPart for Request
Available on crate feature
openapi only.Source§fn modify_api_operation(
operation: &mut Operation,
route_context: &RouteContext<'_>,
schema_generator: &mut SchemaGenerator,
)
fn modify_api_operation( operation: &mut Operation, route_context: &RouteContext<'_>, schema_generator: &mut SchemaGenerator, )
Modify the OpenAPI operation object. Read more
Source§impl RequestExt for Request
impl RequestExt for Request
Source§async fn extract_from_head<E>(&mut self) -> Result<E>where
E: FromRequestHead + 'static,
async fn extract_from_head<E>(&mut self) -> Result<E>where
E: FromRequestHead + 'static,
Runs an extractor implementing
FromRequestHead on the request. Read moreSource§fn context(&self) -> &ProjectContext
fn context(&self) -> &ProjectContext
Get the application context. Read more
Source§fn project_config(&self) -> &ProjectConfig
fn project_config(&self) -> &ProjectConfig
Get the project configuration. Read more
Source§fn path_params(&self) -> &PathParams
fn path_params(&self) -> &PathParams
Get the path parameters. Read more
Source§fn path_params_mut(&mut self) -> &mut PathParams
fn path_params_mut(&mut self) -> &mut PathParams
Get the path parameters mutably. Read more
Source§fn content_type(&self) -> Option<&HeaderValue>
fn content_type(&self) -> Option<&HeaderValue>
Get the content type of the request. Read more