pub struct HttpInboundBuilder { /* private fields */ }Implementations§
Source§impl HttpInboundBuilder
impl HttpInboundBuilder
Sourcepub fn register(
self,
method: &str,
path: &str,
endpoint: Arc<InMemoryEndpoint>,
) -> HttpInboundBuilder
pub fn register( self, method: &str, path: &str, endpoint: Arc<InMemoryEndpoint>, ) -> HttpInboundBuilder
Register an endpoint for a specific HTTP method and path. Path relative to base_path.
Sourcepub fn register_any(
self,
path: &str,
endpoint: Arc<InMemoryEndpoint>,
) -> HttpInboundBuilder
pub fn register_any( self, path: &str, endpoint: Arc<InMemoryEndpoint>, ) -> HttpInboundBuilder
Convenience: register endpoint for all methods (stored as ANY wildcard).
pub fn id(self, id: impl Into<String>) -> HttpInboundBuilder
pub fn host(self, host: impl Into<String>) -> HttpInboundBuilder
pub fn port(self, port: u16) -> HttpInboundBuilder
pub fn base_path(self, path: impl Into<String>) -> HttpInboundBuilder
pub fn channel(self, ch: Arc<dyn Channel>) -> HttpInboundBuilder
pub fn reply_channel(self, ch: Arc<dyn Channel>) -> HttpInboundBuilder
Sourcepub fn mep(self, mep: Mep) -> HttpInboundBuilder
pub fn mep(self, mep: Mep) -> HttpInboundBuilder
Set the message exchange pattern. Default is InOut.
Sourcepub fn in_only_202(self) -> HttpInboundBuilder
pub fn in_only_202(self) -> HttpInboundBuilder
Convenience: respond 202 immediately and dispatch in background.
pub fn build(self) -> HttpInboundAdapter
Auto Trait Implementations§
impl Freeze for HttpInboundBuilder
impl !RefUnwindSafe for HttpInboundBuilder
impl Send for HttpInboundBuilder
impl Sync for HttpInboundBuilder
impl Unpin for HttpInboundBuilder
impl !UnwindSafe for HttpInboundBuilder
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