pub struct StreamableHttpService { /* private fields */ }Expand description
Streamable HTTP as a tower::Service.
Implementations§
Source§impl StreamableHttpService
impl StreamableHttpService
Sourcepub fn new(server: Server) -> Self
pub fn new(server: Server) -> Self
Wraps a server with the default (localhost-only) security settings.
Sourcepub fn with_config(server: Server, config: HttpConfig) -> Self
pub fn with_config(server: Server, config: HttpConfig) -> Self
Wraps a server with explicit security settings.
Trait Implementations§
Source§impl Clone for StreamableHttpService
impl Clone for StreamableHttpService
Source§impl Debug for StreamableHttpService
impl Debug for StreamableHttpService
Source§impl<B> Service<Request<B>> for StreamableHttpService
impl<B> Service<Request<B>> for StreamableHttpService
Source§type Future = Pin<Box<dyn Future<Output = Result<<StreamableHttpService as Service<Request<B>>>::Response, !>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<StreamableHttpService as Service<Request<B>>>::Response, !>> + Send>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for StreamableHttpService
impl !UnwindSafe for StreamableHttpService
impl Freeze for StreamableHttpService
impl Send for StreamableHttpService
impl Sync for StreamableHttpService
impl Unpin for StreamableHttpService
impl UnsafeUnpin for StreamableHttpService
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