This package contains networking-related classes and utilities.
You can see a list of the modules exported from this package in ./lib/index.ts. Here is a brief description of what's available:
agent
is a HTTP/HTTPS agent with support for HTTP/HTTPS proxies and keepalive whenever possibleallowDestroy
can be used to wrap anet.Server
to add a.destroy()
methodblocked
is a utility for matching blocked globsconcatStream
is a wrapper around[email protected]
that makes it always yield aBuffer
connect
contains utilities for making network connections, includingcreateRetryingSocket
cors
contains utilities for Cross-Origin Resource Sharinguri
contains utilities for URL parsing and formatting
See the individual class files in ./lib
for more information.
Note: you should not ever need to build the .js files manually. @packages/ts
provides require-time transpilation when in development.
yarn workspace @packages/network build-prod
Tests are located in ./test
To run tests:
yarn workspace @packages/network test
yarn workspace @packages/network test-watch
yarn workspace @packages/network test-debug