[][src]Trait httptest_core::Responder

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

Respond with an HTTP response.

Required methods

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

Return a future that outputs an HTTP response.

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...