File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -550,10 +550,12 @@ export interface PassThroughHandlerOptions extends PassThroughHandlerConnectionO
550
550
/**
551
551
* A callback that will be passed the full response before it is passed through,
552
552
* and which returns a value that defines how the the response content should
553
- * be transformed before it's returned to the client.
553
+ * be transformed before it's returned to the client. The callback is also passed
554
+ * the request that was sent to the server (as a 2nd parameter) for reference.
554
555
*
555
556
* The callback can either return an object to define how the response should be
556
- * changed, or the string 'close' to immediately close the underlying connection.
557
+ * changed, or the strings 'close' or 'reset' to immediately close/reset the
558
+ * underlying connection.
557
559
*
558
560
* All fields on the object are optional, and returning undefined is equivalent
559
561
* to returning an empty object (transforming nothing).
You can’t perform that action at this time.
0 commit comments