Skip to content

socketry/protocol-http

Repository files navigation

Protocol::HTTP

Provides abstractions for working with the HTTP protocol.

Development Status

Features

  • General abstractions for HTTP requests and responses.
  • Symmetrical interfaces for client and server.
  • Light-weight middleware model for building applications.

Usage

Please see the project documentation for more details.

  • Streaming - This guide gives an overview of how to implement streaming requests and responses.

  • Getting Started - This guide explains how to use protocol-http for building abstract HTTP interfaces.

  • Design Overview - This guide explains the high level design of protocol-http in the context of wider design patterns that can be used to implement HTTP clients and servers.

Releases

Please see the project releases for all releases.

v0.46.0

  • Add support for priority: header.

v0.33.0

  • Clarify behaviour of streaming bodies and copy Protocol::Rack::Body::Streaming to Protocol::HTTP::Body::Streamable.
  • Copy Async::HTTP::Body::Writable to Protocol::HTTP::Body::Writable.

v0.31.0

  • Ensure chunks are flushed if required, when streaming.

v0.30.0

See Also

  • protocol-http1 — HTTP/1 client/server implementation using this interface.
  • protocol-http2 — HTTP/2 client/server implementation using this interface.
  • async-http — Asynchronous HTTP client and server, supporting multiple HTTP protocols & TLS.
  • async-websocket — Asynchronous client and server WebSockets.

Contributing

We welcome contributions to this project.

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

Developer Certificate of Origin

In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.

Community Guidelines

This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.