Struct arc_reactor::contrib::FakeReactor[][src]

pub struct FakeReactor {
    pub service: Box<ArcService>,
}

Fake reactor allows for testing your application's endpoints.

Do note that Ip addresses won't be present on the request struct when testing for obvious reasons.

Fields

Methods

impl FakeReactor
[src]

Post a request to the fake reactor, and either returns a Result<Response, Response> or panics if the route wasn't found.

Send a GET request to the FakeReactor.

Send a PUT request to the FakeReactor.

Send a PATCH request to the FakeReactor.

Send a DELETE request to the FakeReactor.

Auto Trait Implementations

impl Send for FakeReactor

impl Sync for FakeReactor