Struct arc_reactor::FakeReactor [] [src]

pub struct FakeReactor {
    pub routes: Router,
}

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]

[src]

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

[src]

send a get request to the FakeReactor

[src]

send a put request to the FakeReactor

[src]

send a patch request to the FakeReactor

[src]

send a delete request to the FakeReactor

Trait Implementations

Auto Trait Implementations

impl Send for FakeReactor

impl Sync for FakeReactor