Crate hyper_simple_server[][src]

Re-exports

pub use hyper;
pub use tokio;
pub use http;
pub use http_body;
pub use bytes;
pub use rustls;
pub use tokio_rustls;
pub use rustls_pemfile;
pub use native_tls;
pub use tokio_native_tls;

Modules

consts

Structs

Body

A stream of Bytes, used when receiving bodies.

BodyData

Future that resolves to the next data chunk from Body

BodyDynBox
BodySizeHint

A Body size hint

BodyTrailers

Future that resolves to the optional trailers from Body

BodyWrapper
Bytes

A cheaply cloneable and sliceable chunk of contiguous memory.

Configuration
ConfigurationArguments
ConfigurationBuilder
EmbeddedResource
Endpoint
FileResource
HandlerDynArc
HandlerFnAsync
HandlerFnSync
HandlerFutureDynBox
HandlerSimpleAsyncWrapper
HandlerSimpleAsyncWrapperFuture
HandlerSimpleSyncWrapper
HandlerWrapper
HeaderMap

A set of HTTP headers

HeaderName

Represents an HTTP header field name

HeaderValue

Represents an HTTP header field value.

Method

The Request Method (VERB)

NativeTlsCertificate
Request

Represents an HTTP request.

RequestBuilder

An HTTP request builder

RequestParts

Component parts of an HTTP Request

Response

Represents an HTTP response

ResponseBuilder

An HTTP response builder

ResponseParts

Component parts of an HTTP Response

Route
RouteMatched
Routes
RoutesBuilder
RustTlsCertificate
Server
ServerExecutor
StaticResource
StatusCode

An HTTP status code (status-code in RFC 7230 et al.).

Uri

The URI component of a request.

Version

Represents a version of the HTTP spec.

Enums

Accepter
Connection
ContentType
EndpointAddress
EndpointProtocol
EndpointSecurity
RoutePaths

Traits

AsHeaderName

A marker trait used to identify values that can be used as search keys to a HeaderMap.

BodyDyn
BodyTrait

Trait representing a streaming body of a Request or Response.

Buf

Read bytes from a buffer.

Handler
HandlerDyn
HandlerSimpleAsync
HandlerSimpleSync
IntoHeaderName

A marker trait used to identify values that can be used as insert keys to a HeaderMap.

RequestExt
ResponseExt
ResponseExtBuild

Functions

main_configuration_from_template
main_configuration_http
main_with_handler
main_with_handler_dyn
main_with_routes

Type Definitions

Headers
ServerError
ServerResult