You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ toxy allows you to plug in [poisons](#poisons), optionally filtered by [rules](#
10
10
It operates only at L7 (application level).
11
11
12
12
toxy can be fluently used [programmatically](#programmatic-api) or via [HTTP API](#http-api).
13
-
It was built on top of [rocky](https://github.com/h2non/rocky), a full-featured middleware-oriented HTTP proxy, and it's [pluggable](https://github.com/h2non/toxy/blob/master/examples/express.js) in [connect](https://github.com/senchalabs/connect)/[express](http://expressjs.com) as standard middleware.
13
+
It was built on top of [rocky](https://github.com/h2non/rocky), a full-featured middleware-oriented HTTP proxy, and it's also [pluggable](https://github.com/h2non/toxy/blob/master/examples/express.js) in [connect](https://github.com/senchalabs/connect)/[express](http://expressjs.com) as standard middleware.
@@ -489,10 +489,9 @@ Aborts the TCP connection. From the low-level perspective, this will destroy the
489
489
**Arguments**:
490
490
491
491
-**options**`object`
492
-
-**error**`Error` - Custom error when destroying the socket. Default to `null`
493
-
-**delay**`number` - Abort TCP connection after waiting the given miliseconds . Default to `0`
494
-
-**next**`boolean` - If `true`, the connection will be aborted unless the server responds within `delay` milliseconds. Internally, it won't block the middleware call chain, continuing with the next middleware. Default to `false`
495
-
492
+
-**delay**`number` - Aborts TCP connection after waiting the given miliseconds. Default to `0`
493
+
-**next**`boolean` - If `true`, the connection will be aborted if the target server takes more than the `delay` param time to reply. Default to `false`
494
+
-**error**`Error` - Custom internal node.js error to use when destroying the socket. Default to `null`
0 commit comments