Record the http interaction between req
and res
to disk.
The format is a vanilla node module that can be used as
an http.Server handler.
Parameters:
Name | Type | Description |
---|---|---|
req |
http.ClientRequest | |
res |
http.IncomingMessage | |
filename |
String | |
ignoredHeaders |
Array | |
reqBody |
String |
Returns:
- Type
- Promise.<String>