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§
Macros§
Structs§
- Authority
- Represents the authority component of a URI.
- Body
- A stream of
Bytes
, used when receiving bodies. - Body
Data - Future that resolves to the next data chunk from
Body
- Body
DynBox - Body
Size Hint - A
Body
size hint - Body
Trailers - Future that resolves to the optional trailers from
Body
- Body
Wrapper - Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Bytes
Resource - CliArguments
- Configuration
- Configuration
Arguments - Configuration
Builder - Embedded
Resource - Endpoint
- Extensions
- A type map of protocol extensions.
- File
Resource - Handler
DynArc - Handler
FnAsync - Handler
FnSync - Handler
Future DynBox - Handler
Simple Async Wrapper - Handler
Simple Async Wrapper Future - Handler
Simple Sync Wrapper - Handler
Wrapper - Header
Map - A set of HTTP headers
- Header
Name - Represents an HTTP header field name
- Header
Value - Represents an HTTP header field value.
- Method
- The Request Method (VERB)
- Path
AndQuery - Represents the path component of a URI
- Request
- Represents an HTTP request.
- Request
Builder - An HTTP request builder
- Request
Parts - Component parts of an HTTP
Request
- Response
- Represents an HTTP response
- Response
Builder - An HTTP response builder
- Response
Parts - Component parts of an HTTP
Response
- Route
- Route
Matched - Routes
- Routes
Builder - Runtime
- The Tokio runtime.
- Rust
TlsCertificate - Scheme
- Represents the scheme component of a URI
- Server
- Server
Executor - Status
Code - 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
- Content
Type - Endpoint
Address - Endpoint
Protocol - Endpoint
Security - Route
Handler - Route
Paths
Traits§
- AsHeader
Name - A marker trait used to identify values that can be used as search keys
to a
HeaderMap
. - BodyDyn
- BodyExt
- Body
Trait - Trait representing a streaming body of a Request or Response.
- Buf
- Read bytes from a buffer.
- CliExtensions
- Error
ExtPanic - Error
ExtWrap - Error
ExtWrap From - Handler
- Handler
Dyn - Handler
Simple Async - Handler
Simple Sync - Into
Header Name - A marker trait used to identify values that can be used as insert keys
to a
HeaderMap
. - Request
Ext - Response
Ext - Response
ExtBuild - Result
ExtPanic - Result
ExtWrap - Result
ExtWrap From - Route
Handler Dyn
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