Trait actix_web::dev::Service [−][src]
An asynchronous operation from Request
to a Response
.
The Service
trait models a request/response interaction, receiving requests and returning
replies. You can think about a service as a function with one argument that returns some result
asynchronously. Conceptually, the operation looks like this:
async fn(Request) -> Result<Response, Err>
The Service
trait just generalizes this form where each parameter is described as an
associated type on the trait. Services can also have mutable state that influence computation.
Service
provides a symmetric and uniform API; the same abstractions can be used to represent
both clients and servers. Services describe only transformation operations which encourage
simple API surfaces. This leads to simpler design of each service, improves test-ability and
makes composition easier.
struct MyService; impl Service for MyService { type Request = u8; type Response = u64; type Error = MyError; type Future = Pin<Box<Future<Output=Result<Self::Response, Self::Error>>>>; fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { ... } fn call(&self, req: Self::Request) -> Self::Future { ... } }
Sometimes it is not necessary to implement the Service trait. For example, the above service could be rewritten as a simple function and passed to fn_service.
async fn my_service(req: u8) -> Result<u64, MyError>;
Associated Types
type Response
[src]
Responses given by the service.
type Error
[src]
Errors produced by the service when polling readiness or executing call.
type Future: Future
[src]
The future response value.
Required methods
pub fn poll_ready(&self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
Returns Ready
when the service is able to process requests.
If the service is at capacity, then Pending
is returned and the task
is notified when the service becomes ready again. This function is
expected to be called while on a task.
This is a best effort implementation. False positives are permitted.
It is permitted for the service to return Ready
from a poll_ready
call and the next invocation of call
results in an error.
Notes
.poll_ready()
might be called on different task from actual service call.- In case of chained services,
.poll_ready()
get called for all services at once.
pub fn call(&self, req: Req) -> Self::Future
[src]
Process the request and return the response asynchronously.
This function is expected to be callable off task. As such,
implementations should take care to not call poll_ready
. If the
service is at capacity and the request is unable to be handled, the
returned Future
should resolve to an error.
Calling call
without calling poll_ready
is permitted. The
implementation must be resilient to this fact.
Implementations on Foreign Types
impl<T, S, B, X, U> Service<(T, Option<SocketAddr>)> for H1ServiceHandler<T, S, B, X, U> where
B: MessageBody,
T: AsyncRead + AsyncWrite + Unpin,
U: Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>), Response = ()>,
S: Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>,
X: Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Response = Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>,
<S as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error: Into<Error>,
<S as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Response: Into<Response<B>>,
<X as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error: Into<Error>,
<U as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error: Display,
<U as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error: Into<Error>,
[src]
B: MessageBody,
T: AsyncRead + AsyncWrite + Unpin,
U: Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>), Response = ()>,
S: Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>,
X: Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Response = Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>,
<S as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error: Into<Error>,
<S as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Response: Into<Response<B>>,
<X as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error: Into<Error>,
<U as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error: Display,
<U as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error: Into<Error>,
type Response = ()
type Error = DispatchError
type Future = Dispatcher<T, S, B, X, U>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <H1ServiceHandler<T, S, B, X, U> as Service<(T, Option<SocketAddr>)>>::Error>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <H1ServiceHandler<T, S, B, X, U> as Service<(T, Option<SocketAddr>)>>::Error>>
pub fn call(
&self,
(T, Option<SocketAddr>)
) -> <H1ServiceHandler<T, S, B, X, U> as Service<(T, Option<SocketAddr>)>>::Future
[src]
&self,
(T, Option<SocketAddr>)
) -> <H1ServiceHandler<T, S, B, X, U> as Service<(T, Option<SocketAddr>)>>::Future
impl Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>> for ExpectHandler
[src]
type Response = Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>
type Error = Error
type Future = Ready<Result<<ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Response, <ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error>>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Error>>
pub fn call(
&self,
req: Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>
) -> <ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Future
[src]
&self,
req: Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>
) -> <ExpectHandler as Service<Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>>>::Future
impl<T> Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)> for UpgradeHandler
[src]
type Response = ()
type Error = Error
type Future = Ready<Result<<UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Response, <UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error>>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Error>>
pub fn call(
&self,
(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)
) -> <UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Future
[src]
&self,
(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)
) -> <UpgradeHandler as Service<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)>>::Future
impl<'a, S, Req> Service<Req> for &'a mut S where
S: Service<Req> + 'a,
[src]
S: Service<Req> + 'a,
type Response = <S as Service<Req>>::Response
type Error = <S as Service<Req>>::Error
type Future = <S as Service<Req>>::Future
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <&'a mut S as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <&'a mut S as Service<Req>>::Error>>
pub fn call(&self, request: Req) -> <S as Service<Req>>::Future
[src]
impl<S, Req> Service<Req> for Rc<RefCell<S>> where
S: Service<Req>,
[src]
S: Service<Req>,
type Response = <S as Service<Req>>::Response
type Error = <S as Service<Req>>::Error
type Future = <S as Service<Req>>::Future
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <Rc<RefCell<S>> as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <Rc<RefCell<S>> as Service<Req>>::Error>>
pub fn call(&self, request: Req) -> <S as Service<Req>>::Future
[src]
impl<S, Req> Service<Req> for Box<S, Global> where
S: Service<Req> + ?Sized,
[src]
S: Service<Req> + ?Sized,
type Response = <S as Service<Req>>::Response
type Error = <S as Service<Req>>::Error
type Future = <S as Service<Req>>::Future
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <S as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <S as Service<Req>>::Error>>
pub fn call(&self, request: Req) -> <S as Service<Req>>::Future
[src]
impl<F, Fut, Req, Res, Err> Service<Req> for FnServiceFactory<F, Fut, Req, Res, Err, ()> where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
type Response = Res
type Error = Err
type Future = Fut
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <FnServiceFactory<F, Fut, Req, Res, Err, ()> as Service<Req>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <FnServiceFactory<F, Fut, Req, Res, Err, ()> as Service<Req>>::Error>>
pub fn call(
&self,
req: Req
) -> <FnServiceFactory<F, Fut, Req, Res, Err, ()> as Service<Req>>::Future
[src]
&self,
req: Req
) -> <FnServiceFactory<F, Fut, Req, Res, Err, ()> as Service<Req>>::Future
impl<S, F, Fut, Req, In, Res, Err> Service<Req> for Apply<S, F, Req, In, Res, Err> where
F: Fn(Req, &S) -> Fut,
S: Service<In, Error = Err>,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req, &S) -> Fut,
S: Service<In, Error = Err>,
Fut: Future<Output = Result<Res, Err>>,
type Response = Res
type Error = Err
type Future = Fut
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <Apply<S, F, Req, In, Res, Err> as Service<Req>>::Error>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <Apply<S, F, Req, In, Res, Err> as Service<Req>>::Error>>
pub fn call(
&self,
req: Req
) -> <Apply<S, F, Req, In, Res, Err> as Service<Req>>::Future
[src]
&self,
req: Req
) -> <Apply<S, F, Req, In, Res, Err> as Service<Req>>::Future
impl<A, Req, F, E> Service<Req> for MapErr<A, Req, F, E> where
F: Fn(<A as Service<Req>>::Error) -> E + Clone,
A: Service<Req>,
[src]
F: Fn(<A as Service<Req>>::Error) -> E + Clone,
A: Service<Req>,
type Response = <A as Service<Req>>::Response
type Error = E
type Future = MapErrFuture<A, Req, F, E>
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <MapErr<A, Req, F, E> as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <MapErr<A, Req, F, E> as Service<Req>>::Error>>
pub fn call(&self, req: Req) -> <MapErr<A, Req, F, E> as Service<Req>>::Future
[src]
impl<S, Req> Service<Req> for Pipeline<S, Req> where
S: Service<Req>,
[src]
S: Service<Req>,
type Response = <S as Service<Req>>::Response
type Error = <S as Service<Req>>::Error
type Future = <S as Service<Req>>::Future
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <S as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <S as Service<Req>>::Error>>
pub fn call(&self, req: Req) -> <Pipeline<S, Req> as Service<Req>>::Future
[src]
impl<A, F, Req, Res> Service<Req> for Map<A, F, Req, Res> where
F: FnMut(<A as Service<Req>>::Response) -> Res + Clone,
A: Service<Req>,
[src]
F: FnMut(<A as Service<Req>>::Response) -> Res + Clone,
A: Service<Req>,
type Response = Res
type Error = <A as Service<Req>>::Error
type Future = MapFuture<A, F, Req, Res>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <Map<A, F, Req, Res> as Service<Req>>::Error>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <Map<A, F, Req, Res> as Service<Req>>::Error>>
pub fn call(&self, req: Req) -> <Map<A, F, Req, Res> as Service<Req>>::Future
[src]
impl<F, Fut, Req, Res, Err> Service<Req> for FnService<F, Fut, Req, Res, Err> where
F: Fn(Req) -> Fut,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut,
Fut: Future<Output = Result<Res, Err>>,
type Response = Res
type Error = Err
type Future = Fut
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <FnService<F, Fut, Req, Res, Err> as Service<Req>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <FnService<F, Fut, Req, Res, Err> as Service<Req>>::Error>>
pub fn call(
&self,
req: Req
) -> <FnService<F, Fut, Req, Res, Err> as Service<Req>>::Future
[src]
&self,
req: Req
) -> <FnService<F, Fut, Req, Res, Err> as Service<Req>>::Future
impl<S, Req> Service<Req> for RefCell<S> where
S: Service<Req>,
[src]
S: Service<Req>,
type Response = <S as Service<Req>>::Response
type Error = <S as Service<Req>>::Error
type Future = <S as Service<Req>>::Future
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <RefCell<S> as Service<Req>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <RefCell<S> as Service<Req>>::Error>>
pub fn call(&self, request: Req) -> <S as Service<Req>>::Future
[src]
impl<T, U> Service<Connection<T, U>> for RustlsConnectorService where
T: Address,
U: AsyncRead + AsyncWrite + Unpin + Debug,
[src]
T: Address,
U: AsyncRead + AsyncWrite + Unpin + Debug,
type Response = Connection<T, TlsStream<U>>
type Error = Error
type Future = ConnectAsyncExt<T, U>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <RustlsConnectorService as Service<Connection<T, U>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <RustlsConnectorService as Service<Connection<T, U>>>::Error>>
pub fn call(
&self,
stream: Connection<T, U>
) -> <RustlsConnectorService as Service<Connection<T, U>>>::Future
[src]
&self,
stream: Connection<T, U>
) -> <RustlsConnectorService as Service<Connection<T, U>>>::Future
impl<T> Service<T> for AcceptorService where
T: ActixStream,
[src]
T: ActixStream,
type Response = TlsStream<T>
type Error = Error
type Future = AcceptorServiceFut<T>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <AcceptorService as Service<T>>::Error>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <AcceptorService as Service<T>>::Error>>
pub fn call(&self, req: T) -> <AcceptorService as Service<T>>::Future
[src]
impl<T> Service<Connect<T>> for TcpConnector where
T: Address,
[src]
T: Address,
type Response = Connection<T, TcpStream>
type Error = ConnectError
type Future = TcpConnectorResponse<T>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <TcpConnector as Service<Connect<T>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <TcpConnector as Service<Connect<T>>>::Error>>
pub fn call(
&self,
req: Connect<T>
) -> <TcpConnector as Service<Connect<T>>>::Future
[src]
&self,
req: Connect<T>
) -> <TcpConnector as Service<Connect<T>>>::Future
impl<T> Service<Connect<T>> for Resolver where
T: Address,
[src]
T: Address,
type Response = Connect<T>
type Error = ConnectError
type Future = ResolverFuture<T>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <Resolver as Service<Connect<T>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <Resolver as Service<Connect<T>>>::Error>>
pub fn call(&self, req: Connect<T>) -> <Resolver as Service<Connect<T>>>::Future
[src]
impl<T> Service<Connect<T>> for TcpConnectService where
T: Address,
[src]
T: Address,
type Response = TcpStream
type Error = ConnectError
type Future = TcpConnectServiceResponse<T>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <TcpConnectService as Service<Connect<T>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <TcpConnectService as Service<Connect<T>>>::Error>>
pub fn call(
&self,
req: Connect<T>
) -> <TcpConnectService as Service<Connect<T>>>::Future
[src]
&self,
req: Connect<T>
) -> <TcpConnectService as Service<Connect<T>>>::Future
impl<T> Service<Connect<T>> for ConnectService where
T: Address,
[src]
T: Address,
type Response = Connection<T, TcpStream>
type Error = ConnectError
type Future = ConnectServiceResponse<T>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <ConnectService as Service<Connect<T>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <ConnectService as Service<Connect<T>>>::Error>>
pub fn call(
&self,
req: Connect<T>
) -> <ConnectService as Service<Connect<T>>>::Future
[src]
&self,
req: Connect<T>
) -> <ConnectService as Service<Connect<T>>>::Future
impl<T> Service<T> for AcceptorService where
T: ActixStream,
[src]
T: ActixStream,
type Response = TlsStream<T>
type Error = Error
type Future = AcceptorServiceResponse<T>
pub fn poll_ready(
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <AcceptorService as Service<T>>::Error>>
[src]
&self,
ctx: &mut Context<'_>
) -> Poll<Result<(), <AcceptorService as Service<T>>::Error>>
pub fn call(&self, io: T) -> <AcceptorService as Service<T>>::Future
[src]
impl<T> Service<Connect<T>> for OpensslConnectService where
T: 'static + Address,
[src]
T: 'static + Address,
type Response = SslStream<TcpStream>
type Error = ConnectError
type Future = OpensslConnectServiceResponse<T>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <OpensslConnectService as Service<Connect<T>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <OpensslConnectService as Service<Connect<T>>>::Error>>
pub fn call(
&self,
req: Connect<T>
) -> <OpensslConnectService as Service<Connect<T>>>::Future
[src]
&self,
req: Connect<T>
) -> <OpensslConnectService as Service<Connect<T>>>::Future
impl<T, U> Service<Connection<T, U>> for OpensslConnectorService where
T: Address + 'static,
U: AsyncRead + AsyncWrite + Unpin + Debug + 'static,
[src]
T: Address + 'static,
U: AsyncRead + AsyncWrite + Unpin + Debug + 'static,
type Response = Connection<T, SslStream<U>>
type Error = Error
type Future = ConnectAsyncExt<T, U>
pub fn poll_ready(
&self,
&mut Context<'_>
) -> Poll<Result<(), <OpensslConnectorService as Service<Connection<T, U>>>::Error>>
[src]
&self,
&mut Context<'_>
) -> Poll<Result<(), <OpensslConnectorService as Service<Connection<T, U>>>::Error>>
pub fn call(
&self,
stream: Connection<T, U>
) -> <OpensslConnectorService as Service<Connection<T, U>>>::Future
[src]
&self,
stream: Connection<T, U>
) -> <OpensslConnectorService as Service<Connection<T, U>>>::Future
impl<S, Req> Service<Req> for TimeoutService<S, Req> where
S: Service<Req>,
[src]
S: Service<Req>,
type Response = <S as Service<Req>>::Response
type Error = TimeoutError<<S as Service<Req>>::Error>
type Future = TimeoutServiceResponse<S, Req>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <TimeoutService<S, Req> as Service<Req>>::Error>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <TimeoutService<S, Req> as Service<Req>>::Error>>
pub fn call(
&self,
request: Req
) -> <TimeoutService<S, Req> as Service<Req>>::Future
[src]
&self,
request: Req
) -> <TimeoutService<S, Req> as Service<Req>>::Future