-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hey Paolo, thanks for making this. It's just what I needed for the js-libp2p implementation of libp2p+HTTP (tl;dr - partial summary - run HTTP request/response on top of libp2p streams).
I got milo working as the HTTP parser in the browser, with a couple of changes to use TypedArrays instead of the Node-only Buffer. It's not too much work.
Would you be open to merging a change to support browser (and non-node) environments?
I see a couple of options:
- Add a small polyfill for the methods we use.
Buffer.fromand check fortypeof Buffer !== 'undefined'. - Just use TypedArrays everywhere instead of Buffer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels