Crate hyper_simple_server

Source

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 ::futures;
pub use ::path_tree;
pub use ::argparse;

Modules§

consts

Macros§

fail_with_code
fail_with_format
fail_with_message
fail_wrap

Structs§

Authority
Represents the authority component of a URI.
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.
BytesResource
CliArguments
Configuration
ConfigurationArguments
ConfigurationBuilder
EmbeddedResource
Endpoint
Extensions
A type map of protocol extensions.
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)
PathAndQuery
Represents the path component of a URI
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
Runtime
The Tokio runtime.
RustTlsCertificate
Scheme
Represents the scheme component of a URI
Server
ServerExecutor
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
CliArgument
Connection
ContentType
EndpointAddress
EndpointProtocol
EndpointSecurity
RouteHandler
RoutePaths

Traits§

AsHeaderName
A marker trait used to identify values that can be used as search keys to a HeaderMap.
BodyDyn
BodyExt
BodyTrait
Trait representing a streaming body of a Request or Response.
Buf
Read bytes from a buffer.
CliExtensions
ErrorExtPanic
ErrorExtWrap
ErrorExtWrapFrom
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
ResultExtPanic
ResultExtWrap
ResultExtWrapFrom
RouteHandlerDyn

Functions§

error_with_code
error_with_format
error_with_message
error_wrap
main_with_handler
main_with_handler_dyn
main_with_routes
panic_with_code
panic_with_format
panic_with_message
prepare_configuration
prepare_configuration_http
prepare_configuration_https
prepare_configuration_with_extensions
run_with_handler
run_with_handler_dyn
run_with_routes
runtime_current_thread
runtime_multiple_threads
sanitize_authority
sanitize_path
sanitize_path_and_query
sanitize_query
sanitize_scheme
sanitize_uri

Type Aliases§

Headers
ServerError
ServerResult