mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-15 11:40:07 -06:00
Co-authored-by: Jessica Sachs <jess@jessicasachs.io> Co-authored-by: Barthélémy Ledoux <bart@cypress.io> Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: Zach Bloomquist <github@chary.us> Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com> Co-authored-by: ElevateBart <ledouxb@gmail.com> Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
network
This package contains networking-related classes and utilities.
Exports
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:
agentis a HTTP/HTTPS agent with support for HTTP/HTTPS proxies and keepalive whenever possibleallowDestroycan be used to wrap anet.Serverto add a.destroy()methodblockedis a utility for matching blocked globsconcatStreamis a wrapper aroundconcat-stream@1.6.2that makes it always yield aBufferconnectcontains utilities for making network connections, includingcreateRetryingSocketcorscontains utilities for Cross-Origin Resource Sharinguricontains utilities for URL parsing and formatting
See the individual class files in ./lib for more information.
Building
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
Testing
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