Struct rusoto_mock::MockRequestDispatcher [−][src]
pub struct MockRequestDispatcher { /* fields omitted */ }
Methods
impl MockRequestDispatcher
[src]
impl MockRequestDispatcher
pub fn with_status(status: u16) -> MockRequestDispatcher
[src]
pub fn with_status(status: u16) -> MockRequestDispatcher
pub fn with_body(self, body: &str) -> MockRequestDispatcher
[src]
pub fn with_body(self, body: &str) -> MockRequestDispatcher
pub fn with_request_checker<F>(self, checker: F) -> MockRequestDispatcher where
F: Fn(&SignedRequest) + Send + Sync + 'static,
[src]
pub fn with_request_checker<F>(self, checker: F) -> MockRequestDispatcher where
F: Fn(&SignedRequest) + Send + Sync + 'static,
pub fn with_header(self, key: &str, value: &str) -> MockRequestDispatcher
[src]
pub fn with_header(self, key: &str, value: &str) -> MockRequestDispatcher
Trait Implementations
impl DispatchSignedRequest for MockRequestDispatcher
[src]
impl DispatchSignedRequest for MockRequestDispatcher
type Future = FutureResult<HttpResponse, HttpDispatchError>
The future response value.
fn dispatch(
&self,
request: SignedRequest,
_timeout: Option<Duration>
) -> Self::Future
[src]
fn dispatch(
&self,
request: SignedRequest,
_timeout: Option<Duration>
) -> Self::Future
Dispatch Request, and then return a Response
Auto Trait Implementations
impl Send for MockRequestDispatcher
impl Send for MockRequestDispatcher
impl Sync for MockRequestDispatcher
impl Sync for MockRequestDispatcher