pub struct WarpHandlerImpl<Context> { /* private fields */ }Expand description
Interprets typed HTTP programs as an executable warp filter.
Implementations§
Source§impl<Context> WarpHandlerImpl<Context>
impl<Context> WarpHandlerImpl<Context>
Trait Implementations§
Source§impl<Context> BytesOutAlg for WarpHandlerImpl<Context>
impl<Context> BytesOutAlg for WarpHandlerImpl<Context>
Source§type Bytes<From> = WarpBytesOutput
type Bytes<From> = WarpBytesOutput
The raw-byte converter selected for
From.Source§impl<Context> EmptyOutAlg for WarpHandlerImpl<Context>
impl<Context> EmptyOutAlg for WarpHandlerImpl<Context>
Source§type Empty<From> = WarpEmptyOutput
type Empty<From> = WarpEmptyOutput
The empty converter selected for
From.Source§impl<Context> FileOutAlg for WarpHandlerImpl<Context>
impl<Context> FileOutAlg for WarpHandlerImpl<Context>
Source§type File<From> = WarpFileOutput
type File<From> = WarpFileOutput
The streamed-file converter selected for
From.Source§impl<Context> HandlerAlg for WarpHandlerImpl<Context>
impl<Context> HandlerAlg for WarpHandlerImpl<Context>
Source§type Endpoint = WarpEndpoint
type Endpoint = WarpEndpoint
The interpreter’s homogeneous endpoint representation.
Source§impl<Context> HandlerContextAlg<Context> for WarpHandlerImpl<Context>
impl<Context> HandlerContextAlg<Context> for WarpHandlerImpl<Context>
Source§impl<Context, Inputs, Args, Transform, Answering, Output> HandlerEndpointAlg<Arc<Context>, Inputs, Args, Transform, Output> for WarpHandlerImpl<Context>
impl<Context, Inputs, Args, Transform, Answering, Output> HandlerEndpointAlg<Arc<Context>, Inputs, Args, Transform, Output> for WarpHandlerImpl<Context>
Source§fn finish_handler<Handler>(
&self,
handler: Handler,
) -> <Self as HandlerAlg>::Endpointwhere
Handler: OperationAlg + ApplyAlg<Arc<Context>, Args, Output = Output> + Send + Sync + 'static,
fn finish_handler<Handler>(
&self,
handler: Handler,
) -> <Self as HandlerAlg>::Endpointwhere
Handler: OperationAlg + ApplyAlg<Arc<Context>, Args, Output = Output> + Send + Sync + 'static,
Interprets a typed first-order handler as a concrete endpoint. Read more
Source§impl<Context> HeaderOutAlg for WarpHandlerImpl<Context>
impl<Context> HeaderOutAlg for WarpHandlerImpl<Context>
Source§type Header<Inner, Name> = WarpHeaderOutput<Inner, Name>
type Header<Inner, Name> = WarpHeaderOutput<Inner, Name>
The converter writing
Name beside the body Inner states.Source§impl<Context> HtmlOutAlg for WarpHandlerImpl<Context>
impl<Context> HtmlOutAlg for WarpHandlerImpl<Context>
Source§type Html<From> = WarpHtmlOutput
type Html<From> = WarpHtmlOutput
The HTML converter selected for
From.Source§impl<Context> HttpInputAlg for WarpHandlerImpl<Context>
impl<Context> HttpInputAlg for WarpHandlerImpl<Context>
Source§type Path<I> = WarpPathInput<I>
type Path<I> = WarpPathInput<I>
The interpreter’s path extractor for
Input.Source§type Query<I> = WarpQueryInput<I>
type Query<I> = WarpQueryInput<I>
The interpreter’s query extractor for
Input.Source§type Body<I> = WarpBodyInput<I>
type Body<I> = WarpBodyInput<I>
The interpreter’s request-body extractor for
Input.Source§type Form<I> = WarpFormInput<I>
type Form<I> = WarpFormInput<I>
The interpreter’s form-encoded request-body extractor for
Input.Source§type Multipart<I> = WarpMultipartInput<I>
type Multipart<I> = WarpMultipartInput<I>
The interpreter’s extractor for
Input read from a body arriving as parts.Source§type RawBody<I> = WarpRawBodyInput<I>
type RawBody<I> = WarpRawBodyInput<I>
The interpreter’s unread request-body extractor for
Input.Source§type Header<I> = WarpHeaderInput<I>
type Header<I> = WarpHeaderInput<I>
The interpreter’s header extractor for
Input. Read moreSource§type Cookie<I> = WarpCookieInput<I>
type Cookie<I> = WarpCookieInput<I>
The interpreter’s cookie extractor for
Input.Source§type Auth<I> = WarpHeaderInput<I>
type Auth<I> = WarpHeaderInput<I>
The interpreter’s authentication extractor for
Input.Source§type Context<I> = WarpHeadInput<I>
type Context<I> = WarpHeadInput<I>
The interpreter’s endpoint-context extractor for
Input.Source§impl<Context> HttpSelectorAlg for WarpHandlerImpl<Context>
impl<Context> HttpSelectorAlg for WarpHandlerImpl<Context>
Source§type Selector = WarpSelector
type Selector = WarpSelector
The interpreter’s HTTP selector representation.
Source§fn http_method(&self, method: HttpMethod) -> Self::Selector
fn http_method(&self, method: HttpMethod) -> Self::Selector
Interprets a request-method selector.
Source§fn http_prefix(&self, prefix: &RoutePath) -> Self::Selector
fn http_prefix(&self, prefix: &RoutePath) -> Self::Selector
Interprets a path-prefix selector.
Source§impl<Context> JsonOutAlg for WarpHandlerImpl<Context>
impl<Context> JsonOutAlg for WarpHandlerImpl<Context>
Source§type Json<From> = WarpJsonOutput
type Json<From> = WarpJsonOutput
The JSON converter selected for
From.Source§impl<Context> RedirectOutAlg for WarpHandlerImpl<Context>
impl<Context> RedirectOutAlg for WarpHandlerImpl<Context>
Source§type Redirect<From> = WarpRedirectOutput
type Redirect<From> = WarpRedirectOutput
The redirect converter selected for
From.Source§impl<Context> ResultOutAlg for WarpHandlerImpl<Context>
impl<Context> ResultOutAlg for WarpHandlerImpl<Context>
Source§type Result<Inner, Error> = WarpResultOutput<Inner, Error>
type Result<Inner, Error> = WarpResultOutput<Inner, Error>
The converter answering with
Inner on success and with what Error means otherwise.Source§impl<Context> RouteAlg for WarpHandlerImpl<Context>
impl<Context> RouteAlg for WarpHandlerImpl<Context>
Source§type Selector = WarpSelector
type Selector = WarpSelector
The selector applied to a route or endpoint.
Source§type Endpoint = WarpEndpoint
type Endpoint = WarpEndpoint
The homogeneous endpoint representation lifted into routes.
Source§fn coproduct(&self, left: Self::Route, right: Self::Route) -> Self::Route
fn coproduct(&self, left: Self::Route, right: Self::Route) -> Self::Route
Forms the coproduct of two routes.
Source§impl<Context> SelectorAlg for WarpHandlerImpl<Context>
impl<Context> SelectorAlg for WarpHandlerImpl<Context>
Source§impl<Context> StatusOutAlg for WarpHandlerImpl<Context>
impl<Context> StatusOutAlg for WarpHandlerImpl<Context>
Source§type Status<Inner, const CODE: u16> = WarpStatusOutput<Inner, CODE>
type Status<Inner, const CODE: u16> = WarpStatusOutput<Inner, CODE>
The converter answering with
CODE and the body Inner states.Source§impl<Context> TextOutAlg for WarpHandlerImpl<Context>
impl<Context> TextOutAlg for WarpHandlerImpl<Context>
Source§type Text<From> = WarpTextOutput
type Text<From> = WarpTextOutput
The plain-text converter selected for
From.Auto Trait Implementations§
impl<Context> Freeze for WarpHandlerImpl<Context>
impl<Context> RefUnwindSafe for WarpHandlerImpl<Context>where
Arc<Context>: RefUnwindSafe,
impl<Context> Send for WarpHandlerImpl<Context>
impl<Context> Sync for WarpHandlerImpl<Context>
impl<Context> Unpin for WarpHandlerImpl<Context>
impl<Context> UnsafeUnpin for WarpHandlerImpl<Context>where
Arc<Context>: UnsafeUnpin,
impl<Context> UnwindSafe for WarpHandlerImpl<Context>where
Arc<Context>: UnwindSafe,
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
impl<_INNER> HttpApiAlg for _INNERwhere
_INNER: HandlerAlg + HttpInputAlg + HttpRouteAlg<Endpoint = <_INNER as HandlerAlg>::Endpoint> + RouteAlg,
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.