Files
cypress/packages/proxy
Blue F 172c364021 fix: Time out unmatched prerequests in proxy to avoid leaking memory (#22462)
* fix: Time out unmatched prerequests in proxy to avoid leaking memory (and generally improve proxy performance)

* Fix types, whoops

* More type fixes? Plz?

* One more TS attempt.

* Revert GQL changes that break TS

* Revert accidental config change

* Rewrote debug messages for clarity

* One more logging change

* Add test around pre-request garbage collection

* Add test around pre-request garbage collection

* Typo

* Typo again

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Clean up interval in prerequest tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-06-23 10:12:49 -07:00
..

proxy

This package contains the code for Cypress's HTTP interception proxy.

HTTP interception

./lib/http contains the code that intercepts HTTP requests. The bulk of the proxy's behavior is in three files:

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/proxy build-prod

Testing

Tests are located in ./test

To run tests:

yarn workspace @packages/proxy test

Additionally, the server package contains tests that use the proxy.

Debug Logs

High level logs are available in the DEBUG=cypress:proxy:* namespace.

Detailed per-request logs are available in DEBUG=cypress-verbose:proxy:http.