https://github.com/murphsicles/http
@net/http - Core HTTP types for Zeta
https://github.com/murphsicles/http
Last synced: 22 days ago
JSON representation
@net/http - Core HTTP types for Zeta
- Host: GitHub
- URL: https://github.com/murphsicles/http
- Owner: murphsicles
- License: mit
- Created: 2026-05-16T17:26:49.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-17T15:13:25.000Z (2 months ago)
- Last Synced: 2026-05-17T17:36:59.301Z (2 months ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @net/http — Core HTTP Types for Zeta
Zeta port of the [hyperium/http](https://github.com/hyperium/http) library (v1.2.0).
## Features
- `Request` and `Response` with builder pattern
- `Method` (GET, POST, PUT, DELETE, HEAD, OPTIONS, CONNECT, PATCH, TRACE)
- `StatusCode` with all standard codes
- `HeaderMap`, `HeaderName`, `HeaderValue`
- `Uri` with scheme, authority, path, query components
- `Version` (HTTP/0.9 through HTTP/3.0)
## Usage
```zeta
use http::{Request, Response, Method, StatusCode};
let req = Request::builder()
.method(Method::GET)
.uri("https://example.com/")
.header("Accept", "text/html")
.body("");
```
## License
MIT