BSD-3-Clause licensed by Alcides Viamontes Esquivel
Maintained by [email protected]
This version can be pinned in stack with:second-transfer-0.5.3.2@sha256:2a4c4e1e1424dd67674dc8bf579d5dcecf575c8567f95824d1f84b33da9f18fe,5778

Developer README

Introduction

This is an early-stage and very experimental library to create HTTP/2 servers using Haskell.

To see the package docs, please check the Hackage page or the file hs-src/SecondTransfer.hs.

Building and installing

You need Haskell GHC compiler installed (version 7.8.3 at least). You also need OpenSSL 1.0.2, since the ALPN feature and some very recent cypher-suites are needed by HTTP/2. this source distribution will try to find them at
directory /opt/openssl-1.0.2, but you should be able to alter the options using cabal configure. This package uses Haskell’s FFI to interface with OpenSSL.

Provided that you have all the dependencies, you should be able to just do:

$ cabal install second-transfer

Running the tests

$ cabal test

Example

There is a very basic example at tests/tests-hs-src/compiling_ok.hs.

Roadmap

Done:

  • Version 0.1: Having something that can run. No unit-testing, nothing fancy.

  • Version 0.2: Absolutely minimal amount of unit tests.

  • Version 0.3: More sensible logging.

Pending:

  • Better examples.

  • Epoll I/O management

  • Benchmarking.

Changes

  • 0.5.3.2 :
    • Added this changelog.
    • Fixed the lower limit for the time package.
    • Enforce first frame being a settings frame when receiving.
    • Added a couple of tests.