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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,13 +111,15 @@ Starts the proxy listening on the given port.
111
111
__Arguments__
112
112
113
113
* options - An object with the following options:
114
-
* port - The port to listen on (default: 8080).
114
+
* port - The port or named socket to listen on (default: 8080).
115
115
* sslCaDir - Path to the certificates cache directory (default: process.cwd() + '/.http-mitm-proxy')
116
116
* silent - if set to true, nothing will be written to console (default: false)
117
117
* timeout - The number of milliseconds of inactivity before a socket is presumed to have timed out. Defaults to no timeout.
118
118
* httpAgent - The [http.Agent](https://nodejs.org/api/http.html#http_class_http_agent) to use when making http requests. Useful for chaining proxys. (default: internal Agent)
119
119
* httpsAgent - The [https.Agent](https://nodejs.org/api/https.html#https_class_https_agent) to use when making https requests. Useful for chaining proxys. (default: internal Agent)
120
120
* forceSNI - force use of [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication) by the client. Allow node-http-mitm-proxy to handle all HTTPS requests with a single internal server.
121
+
* httpsPort - The port or named socket for https server to listen on. _(forceSNI must be enabled)_
122
+
* useNamedSocket - use named socket (i.e. unix socket or named pipe) instead of TCP ports for internal server(s)
0 commit comments