pub struct HttpInboundBuilder { /* private fields */ }Implementations§
Source§impl HttpInboundBuilder
impl HttpInboundBuilder
Sourcepub fn register(
self,
method: &str,
path: &str,
endpoint: Arc<InMemoryEndpoint>,
) -> Self
pub fn register( self, method: &str, path: &str, endpoint: Arc<InMemoryEndpoint>, ) -> Self
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>) -> Self
pub fn register_any(self, path: &str, endpoint: Arc<InMemoryEndpoint>) -> Self
Convenience: register endpoint for all methods (stored as ANY wildcard).
pub fn id(self, id: impl Into<String>) -> Self
pub fn host(self, host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn base_path(self, path: impl Into<String>) -> Self
pub fn channel(self, ch: ChannelRef) -> Self
pub fn reply_channel(self, ch: ChannelRef) -> Self
Sourcepub fn in_only_202(self) -> Self
pub fn in_only_202(self) -> Self
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