https://github.com/matrixai/hs-http2stream
A HTTP2 Multiplexer for Haskell designed for LibP2P
https://github.com/matrixai/hs-http2stream
haskell http2 libp2p multiplexer
Last synced: 11 months ago
JSON representation
A HTTP2 Multiplexer for Haskell designed for LibP2P
- Host: GitHub
- URL: https://github.com/matrixai/hs-http2stream
- Owner: MatrixAI
- License: bsd-3-clause
- Created: 2017-12-16T10:19:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T12:01:04.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T06:29:46.309Z (about 1 year ago)
- Topics: haskell, http2, libp2p, multiplexer
- Language: Haskell
- Homepage:
- Size: 111 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http2stream
HTTP2 Stream Muxer to support the LibP2P API
Work In Progress.
TODO List:
- All the partial functions in Sender are pretty smelly. Especially the errors that I give out if we try to encode a closed stream. We should be able to mark the Output type with a tag like we mark Streams (i.e. Output 'Closed and Output 'Open).
Future Work:
- I hate how imperative this thing is. I want to refactor all the connection code in the frame receiver into an ADT that we execute over.
- We tag the stream type with whether it is Open or Closed, i.e. Stream 'Open or Stream 'Closed. This eliminates some partial functions in the Receiver. But introduces some problems over how streams of different states are stored. Probably best figured out after we refactor the Receiver and Sender into an ADT.