Skip to content

Commit d533a1b

Browse files
jcrugzzindexzero
authored andcommitted
[dist] document the feature
1 parent 89f9ef8 commit d533a1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ proxyServer.listen(8015);
345345
* **cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:
346346
* `false` (default): disable cookie rewriting
347347
* String: new path, for example `cookiePathRewrite: "/newPath/"`. To remove the path, use `cookiePathRewrite: ""`. To set path to root use `cookiePathRewrite: "/"`.
348-
* Object: mapping of paths to new paths, use `"*"` to match all paths.
348+
* Object: mapping of paths to new paths, use `"*"` to match all paths.
349349
For example keep one path unchanged, rewrite one path and remove other paths:
350350
```
351351
cookiePathRewrite: {
@@ -357,6 +357,7 @@ proxyServer.listen(8015);
357357
* **headers**: object with extra headers to be added to target requests.
358358
* **proxyTimeout**: timeout (in millis) for outgoing proxy requests
359359
* **timeout**: timeout (in millis) for incoming requests
360+
* **selfHandleRequest** true/false, if set to true, none of the webOutgoing passes are called and its your responsibility ro appropriately return the response by listening and acting on the `proxyRes` event
360361
361362
**NOTE:**
362363
`options.ws` and `options.ssl` are optional.

0 commit comments

Comments
 (0)