Struct fibers_http_server::ServerBuilder [] [src]

pub struct ServerBuilder { /* fields omitted */ }

HTTP server builder.

Methods

impl ServerBuilder
[src]

[src]

Makes a new ServerBuilder instance.

[src]

Adds a HTTP request handler.

Errors

If the path and method of the handler conflicts with the already registered handlers, an ErrorKind::InvalidInput error will be returned.

[src]

Adds a HTTP request handler with the given options.

Errors

If the path and method of the handler conflicts with the already registered handlers, an ErrorKind::InvalidInput error will be returned.

Important traits for &'a mut W
[src]

Sets the logger of the server.

The default value is Logger::root(Discard, o!()).

Important traits for &'a mut W
[src]

Sets MetricBuilder used by the server.

The default value is MetricBuilder::default().

Important traits for &'a mut W
[src]

Sets the application level read buffer size of the server in bytes.

The default value is 8192.

Important traits for &'a mut W
[src]

Sets the application level write buffer size of the server in bytes.

The default value is 8192.

Important traits for &'a mut W
[src]

Sets the options of the request decoder of the server.

The default value is DecodeOptions::default().

[src]

Builds a HTTP server with the given settings.

Trait Implementations

impl Debug for ServerBuilder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ServerBuilder

impl !Sync for ServerBuilder