Struct dredd_hooks::HooksServer [] [src]

pub struct HooksServer { /* fields omitted */ }

Server that allows you to register hooks with the dredd test runner.

Methods

impl HooksServer
[src]

Create a new instance.

Start hook server with provided port.

Since the port of the hook server is usually determined by a IntegrationServer (= dredd-hooks-rust command) there is a convenience method to pick up the correct port with start_from_env.

Start hook server with port taken from the env as it is set by a IntegrationServer.

Register a hook that will run once before running any transactions.

Register a hook that will run before each indiviual transactions.

Register a hook that will run before a specific transactions.

Register a hook that will run before the validation of each indiviual transactions.

Register a hook that will run before a specific transactions will be validated.

Register a hook that will run after a specific transactions.

Register a hook that will run after each indiviual transactions.

Register a hook that will run once after running all other transactions.

Trait Implementations

impl Default for HooksServer
[src]

Returns the "default value" for a type. Read more

impl Clone for HooksServer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HooksServer
[src]

Formats the value using the given formatter.

impl Service for HooksServer
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Process the request and return the response asynchronously.