pub struct HttpProgramBuilder;Expand description
Constructs neutral HTTP route programs.
Implementations§
Source§impl HttpProgramBuilder
impl HttpProgramBuilder
Sourcepub fn routes(&self) -> RouteProgram<Empty>
pub fn routes(&self) -> RouteProgram<Empty>
Starts an empty, uninterpreted route program.
Subsequent calls record route syntax without requiring any concrete framework capabilities.
Sourcepub fn op<Handler>(&self, handler: Handler) -> Operation<Handler>
pub fn op<Handler>(&self, handler: Handler) -> Operation<Handler>
Wraps a first-order handler operation in a neutral declaration.
Input roles and an output kind can then be attached while the handler’s
result type remains inferred through ApplyAlg.
Sourcepub fn program<Program>(&self, program: Program) -> RouteProgram<Named<Program>>
pub fn program<Program>(&self, program: Program) -> RouteProgram<Named<Program>>
Includes a named HTTP program as an uninterpreted composition node.
The named program is compiled by the same interpreter as its enclosing route program when the complete tree is folded.
Trait Implementations§
Source§impl Debug for HttpProgramBuilder
impl Debug for HttpProgramBuilder
Source§impl Default for HttpProgramBuilder
impl Default for HttpProgramBuilder
Source§fn default() -> HttpProgramBuilder
fn default() -> HttpProgramBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpProgramBuilder
impl RefUnwindSafe for HttpProgramBuilder
impl Send for HttpProgramBuilder
impl Sync for HttpProgramBuilder
impl Unpin for HttpProgramBuilder
impl UnsafeUnpin for HttpProgramBuilder
impl UnwindSafe for HttpProgramBuilder
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
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.