use-http
Small HTTP primitive utilities for RustUse.
Experimental
use-http is experimental while the use-web workspace remains below 0.3.0. Expect small API adjustments during the first release wave.
Example
use ;
let request = parse_request_line.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Scope
- HTTP version parsing and formatting.
- Lightweight request-line and status-line parsing.
- Helpers for classifying request-target forms.
Non-goals
- HTTP clients or servers.
- TCP or TLS handling.
- Async networking.
- Full HTTP parsers.
- Body parsing.
- HTTP/2 or HTTP/3 frame handling.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license