This is a work in progress, we need to find a good interface that abstracts and unify Cohttp and Httpaf libraries. It's split into three subpackages:
mirage-http
: HTTP interfacemirage-http.cohttp
: Cohttp wrappermirage-http.httpaf
: Httpaf wrapper
It doesn't work on upstream httpaf, it needs features that are pending for review:
- Mirage adapter (inhabitedtype/httpaf#83)
- Upgrade connection (inhabitedtype/httpaf#91)
You can take a look in test/
for a sample of client/server that use the abstraction.