Module hyper::server [] [src]

HTTP Server

A Server is created to listen on a port, parse HTTP requests, and hand them off to a Service.

Structs

AddrIncoming

A stream of connections from binding to an address.

Connection

A future binding a connection with a Service.

Http

An instance of the HTTP protocol, and implementation of tokio-proto's ServerProto trait.

Request

An HTTP Request

Response

An HTTP Response

Serve

A stream mapping incoming IOs to new services.

Server

An instance of a server created through Http::bind.

Traits

NewService

Creates new Service values.

Service

An asynchronous function from Request to a Response.

Functions

const_service

Create a NewService by sharing references of `service.

service_fn

Create a Service from a function.