A pure ruby HTTP/2 library.
There's a demo server in demo-site.rb which runs a basic HTTP/2
server. Full HTTPS compatibility requires that Ruby was built with
OpenSSL version 1.0.2+ (for ALPN and SNI). You should also have a
valid X.509 certificate and key in the same directory.
openssl req -x509 -newkey rsa:2048 -nodes \
-keyout private.key \
-out certificate.crt \
-days 3650
By default the demo site serves the following resources:
https://localhost:8888/ - a simple HTML page
https://localhost:8888/padded - as above, but uses HTTP/2 padding
on HEADERS and DATA frames in the response
The server sends a valid 404 response for any other resource, and a 405 for any request method other than GET or HEAD.
| Repository | https://github.com/phluid61/ruby-h2/ |
| Issues | https://github.com/phluid61/ruby-h2/issues |
| Webpage | https://phluid61.github.io/ruby-h2/ |
We require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This repository is subject to a Contributor Code of Conduct adapted from the Contributor Covenant, version 3.0, available at https://www.contributor-covenant.org/version/3/0/
This project is licensed under the ISC licence. See LICENSE for details.
Copyright (c) 2015, Matthew Kerwin <matthew@kerwin.net.au> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.