Properly handle repeating headers (e.g. set-cookie) by storing and reading multiple entries.
Filter out request headers not response headers.
Precompile before publishing, no longer requires Coffee-Script to run.
Added support for HTTPS (Jerome Gravel-Niquet)
Do not store request headers we don't care for.
Replay files can now use REGEXP to match request URL (Jerome Gravel-Niquet)
Accept replay documents with nothing but method and path.
Fix status code being string instead of integer.
Fix handling of fixtures with empty body.
Support (or don't fail on) Web Sockets.
Fix non-working Replay.localhost
.
There may be hosts you don't care to record/replay: it doesn't matter if requests to these hosts succeed or not, and you don't care to manage their recorded file. You can just add those to the ignore list:
Replay.ignore "www.google-analytics.com", "airbrake.io"
The allow
, ignore
and localhost
methods now accept multiple arguments.
Bug fix to DNS hack.
You can tell node-replay what hosts to treat as "localhost". Requests to these hosts will be routed to 127.0.0.1, without capturing or replay. This is particularly useful if you're making request to a test server and want to use the same URL as production.
For example:
Replay.localhost "www.example.com"
Likewise, you can tell node-reply to allow network access to specific hosts. These requests can still be recorded and replayed, but will otherwise pass through to the specified host:
Replay.allow "logger.example.com"
Only store specific request headers (e.g. Accept
but not User-Agent
).
Recorded response now starts with .
Examples: GET /weather?c=94606 POST /posts
Fix pathname and support matching request headers.
First, almost does something interesting, check in.