Expand description
re-export of http crate types.
Modules§
- const_
header_ name - Some often used header name.
- const_
header_ value - Some often used header value.
- header
- HTTP header types
- method
- The HTTP request method
- request
- HTTP request types.
- response
- HTTP response types.
- status
- HTTP status codes
- uri
- URI component of request and response lines
- version
- HTTP version
Structs§
- Error
- A generic “error” for HTTP connections
- Extensions
- A type map of protocol extensions.
- 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)
- Request
- Represents an HTTP request.
- Request
Ext - extension types for Request
- Response
- Represents an HTTP response
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Uri
- The URI component of a request.
- Version
- Represents a version of the HTTP spec.
Traits§
- Borrow
Req - trait for Borrow &T from &Self. used for foreign types (from xitca-http pov) that can be impl with Borrow trait.
- Borrow
ReqMut - trait for Borrow &mut T from &mut Self. used for foreign types (from xitca-http pov) that can be impl with BorrowMut trait.
- Into
Response - helper trait for converting a Request to Response. This is a memory optimization for re-use heap allocation and pass down the context data inside Extensions from request to response.
Type Aliases§
- Result
- A
Resulttypedef to use with thehttp::Errortype