From 5a88e70f6075615fc6fb8baf6d04e2e072023a6f Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Mon, 4 Dec 2017 18:08:38 +0000 Subject: [PATCH] Add readme --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f1d142c --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# NIO-HTTP2 + +**HTTP/2 for NIO** + +This project contains bindings to the awesome [nghttp2](https://nghttp2.org/documentation/package_README.html) library that make it possible to write clients and servers in SwiftNIO that use HTTP/2. + +These bindings exist out-of-tree because not all systems that SwiftNIO supports necessarily have installations of nghttp2. For this reason, we want to ensure that users have access to nghttp2 before they attempt to build this code. + +## Building + +`swift-nio-http2` is a SwiftPM project and can be built and tested very simply: + +```bash +$ swift build +$ swift test +``` + +Note, however, that you need nghttp2 installed and available to the linker. On macOS or other Darwin platforms, the easiest way to get nghttp2 is via Homebrew: + +```bash +$ brew install nghttp2 +``` + +For more recent Linux systems, nghttp2 may be available from your package manager. Otherwise, you may need to [build it from source](https://nghttp2.org/documentation/package_README.html#requirements).