Skip to main content

Crate core

Crate core 

Available on crate features http-full and http only.
Expand description

Rama http protocol implementation and low level utilities.

§Cancel safety

Futures returned by this crate senders are cancel safe: dropping a future before it completes is the supported way to cancel the operation. See the documentation on individual futures — for example SendRequest::send_request in client::conn::http1 and client::conn::http2 — for the protocol- specific behavior on cancellation.

§Rama

Crate used by the end-user rama crate and rama crate authors alike.

Learn more about rama:

§rama-http-core

§Features

  • HTTP/1 and HTTP/2
  • Asynchronous design
  • Leading in performance
  • Tested and correct
  • Extensive production use
  • Client and Server APIs

Modules§

body
Streaming bodies for Requests and Responses.
client
HTTP Client.
h2
An asynchronous, HTTP/2 server and client implementation.
server
HTTP Server.
service

Structs§

Error
Represents errors that can occur handling HTTP streams.

Type Aliases§

Result
Result type often returned from methods that can have hyper Errors.