[−][src]Struct interledger_http::HttpServer
A warp filter that parses incoming ILP-Over-HTTP requests, validates the authorization, and passes the request to an IncomingService handler.
Methods
impl<I, S> HttpServer<I, S> where
I: IncomingService<S::Account> + Clone + Send + Sync + 'static,
S: HttpStore,
[src]
I: IncomingService<S::Account> + Clone + Send + Sync + 'static,
S: HttpStore,
pub fn new(incoming: I, store: S) -> Self
[src]
pub fn as_filter(
&self
) -> impl Filter<Extract = (Response<Bytes>,), Error = Rejection> + Clone
[src]
&self
) -> impl Filter<Extract = (Response<Bytes>,), Error = Rejection> + Clone
pub fn bind(
&self,
addr: SocketAddr
) -> impl Future<Item = (), Error = ()> + Send
[src]
&self,
addr: SocketAddr
) -> impl Future<Item = (), Error = ()> + Send
Trait Implementations
impl<I: Clone, S: Clone> Clone for HttpServer<I, S>
[src]
fn clone(&self) -> HttpServer<I, S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<I, S> Send for HttpServer<I, S> where
I: Send,
S: Send,
I: Send,
S: Send,
impl<I, S> Sync for HttpServer<I, S> where
I: Sync,
S: Sync,
I: Sync,
S: Sync,
impl<I, S> Unpin for HttpServer<I, S> where
I: Unpin,
S: Unpin,
I: Unpin,
S: Unpin,
impl<I, S> UnwindSafe for HttpServer<I, S> where
I: UnwindSafe,
S: UnwindSafe,
I: UnwindSafe,
S: UnwindSafe,
impl<I, S> RefUnwindSafe for HttpServer<I, S> where
I: RefUnwindSafe,
S: RefUnwindSafe,
I: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,