30 releases

✓ Uses Rust 2018 edition

new 0.2.0-alpha.2 Sep 20, 2019
0.1.26 Jul 26, 2019
0.1.17 Mar 13, 2019
0.1.14 Dec 5, 2018
0.0.0 Mar 9, 2017

#3 in Web programming

Download history 55167/week @ 2019-06-07 54206/week @ 2019-06-14 56779/week @ 2019-06-21 59266/week @ 2019-06-28 55492/week @ 2019-07-05 57947/week @ 2019-07-12 58854/week @ 2019-07-19 69150/week @ 2019-07-26 69959/week @ 2019-08-02 73688/week @ 2019-08-09 66801/week @ 2019-08-16 63575/week @ 2019-08-23 62553/week @ 2019-08-30 65987/week @ 2019-09-06 65228/week @ 2019-09-13

273,468 downloads per month
Used in 1,571 crates (7 directly)

MIT license

705KB
17K SLoC

H2

NOTE: h2's master branch is currently in the process of moving to std::future. For the most recent release, please see the 0.1.x branch.

A Tokio aware, HTTP/2.0 client & server implementation for Rust.

Build Status License: MIT Crates.io Documentation

More information about this crate can be found in the crate documentation.

Features

  • Client and server HTTP/2.0 implementation.
  • Implements the full HTTP/2.0 specification.
  • Passes h2spec.
  • Focus on performance and correctness.
  • Built on Tokio.

Non goals

This crate is intended to only be an implementation of the HTTP/2.0 specification. It does not handle:

  • Managing TCP connections
  • HTTP 1.0 upgrade
  • TLS
  • Any feature not described by the HTTP/2.0 specification.

The intent is that this crate will eventually be used by hyper, which will provide all of these features.

Usage

To use h2, first add this to your Cargo.toml:

[dependencies]
h2 = "0.1"

Next, add this to your crate:

extern crate h2;

use h2::server::Connection;

fn main() {
    // ...
}

FAQ

How does h2 compare to solicit or rust-http2?

The h2 library has implemented more of the details of the HTTP/2.0 specification than any other Rust library. It also passes the h2spec set of tests. The h2 library is rapidly approaching "production ready" quality.

Besides the above, Solicit is built on blocking I/O and does not appear to be actively maintained.

Is this an embedded Java SQL database engine?

No.

Dependencies

~1.5MB
~26K SLoC