#http #response #request-response #redirect #request #tcp

http-response

A Rust-based library for constructing and sending HTTP responses with a fluent interface. This library provides an implementation of an HTTP Response type that allows for flexible configuration of HTTP version, status code, headers, and body. It supports building HTTP response payloads and sending them over a TcpStream.

1 unstable release

new 0.1.0 Dec 23, 2024

#1332 in Network programming

MIT license

7KB
95 lines

http-response

Official Documentation

Api Docs

A Rust-based library for constructing and sending HTTP responses with a fluent interface. This library provides an implementation of an HTTP Response type that allows for flexible configuration of HTTP version, status code, headers, and body. It supports building HTTP response payloads and sending them over a TcpStream.

Features

Installation

To use this crate, you can run cmd:

cargo add http-response

Use

use http_response::*;

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at ltpp-universe root@ltpp.vip.

Dependencies

~7MB
~269K SLoC