use-http 0.0.1

Small HTTP primitive utilities for RustUse
Documentation
  • Coverage
  • 57.69%
    15 out of 26 items documented1 out of 15 items with examples
  • Size
  • Source code size: 10.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 497.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-web
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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 use_http::{HttpVersion, parse_request_line};

let request = parse_request_line("GET /docs HTTP/1.1").unwrap();

assert_eq!(request.method, "GET");
assert_eq!(request.target, "/docs");
assert_eq!(request.version, HttpVersion::Http11);

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