[−][src]Crate http_bytes
Some ways to define this crate:
- Adaptor between
httparse
andhttp
crates. - Super-lowlevel web framework, almost minimal one around
http
crate. - A way to make bytes to/from HTTP request/responses
HTTP 1 only, no HTTP 2.
Body is not touched in any way. Not performance-optimized. Request handling code tries to to Basic Authorization (can opt out).
Supports Rust 1.28.0
Re-exports
pub extern crate http; |
Enums
Error | Error handling for this crate |
Constants
EMPTY_HEADER | An empty header, useful for constructing a |
Functions
parse_request_header | Parse this byte buffer into a |
parse_request_header_easy | Parse this byte buffer into a |
parse_response_header | Parse this byte buffer into a |
parse_response_header_easy | Parse this byte buffer into a |
request_header_to_vec | Easy version of |
response_header_to_vec | Easy version of |
write_request_header | Write request line and headers (but not body) of this HTTP 1.1 request May add 'Host:' header automatically Returns number of bytes written |
write_response_header | Write response line and headers (but not body) of this HTTP 1.1 response |
Type Definitions
Request |
|
Response |
|