Struct hyper::server::Server [] [src]

pub struct Server<A> { /* fields omitted */ }

A Server that can accept incoming network requests.

Methods

impl<A: Accept> Server<A>
[src]

Creates a new Server from a Stream of Ios.

The addr is the socket address the accepter is listening on.

Enables or disables HTTP keep-alive.

Default is true.

impl Server<Incoming>
[src]

Creates a new HTTP server config listening on the provided address.

impl<A: Accept> Server<A>
[src]

Binds to a socket and starts handling connections.

impl Server<()>
[src]

Create a server that owns its event loop.

The returned ServerLoop can be used to run the loop forever in the thread. The returned Listening can be sent to another thread, and used to shutdown the ServerLoop.

Trait Implementations

impl<A: Debug> Debug for Server<A>
[src]

Formats the value using the given formatter.