[][src]Trait httptest::responders::Responder

pub trait Responder: Send + Debug {
    fn respond(
        &mut self
    ) -> Pin<Box<dyn Future<Output = Response<Body>> + Send>>; }

Respond with an HTTP response.

Required methods

fn respond(&mut self) -> Pin<Box<dyn Future<Output = Response<Body>> + Send>>

Return a future that outputs an HTTP response.

Loading content...

Implementations on Foreign Types

impl<B> Responder for Response<B> where
    B: Clone + Into<Body> + Send + Debug
[src]

Loading content...

Implementors

impl Responder for Cycle[src]

impl Responder for JsonEncoded[src]

impl Responder for StatusCode[src]

impl Responder for UrlEncoded[src]

Loading content...