Struct ethcore_rpc::ServerBuilder []

pub struct ServerBuilder<M = ()> where M: Metadata { /* fields omitted */ }

Convenient JSON-RPC HTTP Server builder.

Methods

impl<M> ServerBuilder<M> where M: Metadata

Creates new ServerBuilder for given IoHandler.

If you want to re-use the same handler in couple places see with_remote function.

By default: 1. Server is not sending any CORS headers. 2. Server is validating Host header.

Creates new ServerBuilder given access to the event loop Remote.

By default: 1. Server is not sending any CORS headers. 2. Server is validating Host header.

Sets handler invoked in case of server panic.

Configures a list of allowed CORS origins.

Configures metadata extractor

Allow connections only with Host header set to binding address.

Specify a list of valid Host headers. Binding address is allowed automatically.

Start this JSON-RPC HTTP server trying to bind to specified SocketAddr.