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
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,23 +189,23 @@ It is possible to filter (allow or deny) requests with simple `access` JS functi
189
189
`access` function is invoked with following parameters:
190
190
191
191
1. Request *(Object)*. It contains following properties:
192
-
***method***(string)* - HTTP method used in request (CONNECT, GET, POST, PUT, etc.).
193
-
***url***(string)* - URL parsed from the URI supplied on the Request-Line.
194
-
***proto***(string)* - the protocol version for incoming server requests.
195
-
***protoMajor***(Number)* - numeric major protocol version.
196
-
***protoMinor***(Number)* - numeric minor protocol version.
197
-
***header***(Object)* - mapping of *String* headers (except Host) in canonical form to *Array* of their *String* values.
198
-
***contentLength***(Number)* - length of request body, if known.
199
-
***transferEncoding***(Array)* - lists the request's transfer encodings from outermost to innermost.
200
-
***host***(String)* - specifies the host on which the URL is sought. For HTTP/1 (per RFC 7230, section 5.4), this is either the value of the "Host" header or the host name given in the URL itself. For HTTP/2, it is the value of the ":authority" pseudo-header field.
201
-
***remoteAddr***(String)* - client's IP:port.
202
-
***requestURI***(String)* - the unmodified request-target of the Request-Line (RFC 7230, Section 3.1.1) as sent by the client to a server.
192
+
***method***(string)* - HTTP method used in request (CONNECT, GET, POST, PUT, etc.).
193
+
***url***(string)* - URL parsed from the URI supplied on the Request-Line.
194
+
***proto***(string)* - the protocol version for incoming server requests.
195
+
***protoMajor***(Number)* - numeric major protocol version.
196
+
***protoMinor***(Number)* - numeric minor protocol version.
197
+
***header***(Object)* - mapping of *String* headers (except Host) in canonical form to *Array* of their *String* values.
198
+
***contentLength***(Number)* - length of request body, if known.
199
+
***transferEncoding***(Array)* - lists the request's transfer encodings from outermost to innermost.
200
+
***host***(String)* - specifies the host on which the URL is sought. For HTTP/1 (per RFC 7230, section 5.4), this is either the value of the "Host" header or the host name given in the URL itself. For HTTP/2, it is the value of the ":authority" pseudo-header field.
201
+
***remoteAddr***(String)* - client's IP:port.
202
+
***requestURI***(String)* - the unmodified request-target of the Request-Line (RFC 7230, Section 3.1.1) as sent by the client to a server.
203
203
2. Destination address *(Object)*. It's an address where actual connection is about to be created. It contains following properties:
204
-
***network***(String)* - connection type. Should be `"tcp"` in most cases unless restricted to specific address family (`"tcp4"` or `"tcp6"`).
205
-
***originalHost***(String)* - original hostname or IP address parsed from request.
206
-
***resolvedHost***(String)* - resolved hostname from request.
207
-
***port***(Number)* - port number.
208
-
* Username *(String)*. Name of the authenticated user or an empty string if there is no authentication.
204
+
***network***(String)* - connection type. Should be `"tcp"` in most cases unless restricted to specific address family (`"tcp4"` or `"tcp6"`).
205
+
***originalHost***(String)* - original hostname or IP address parsed from request.
206
+
***resolvedHost***(String)* - resolved hostname from request.
207
+
***port***(Number)* - port number.
208
+
3. Username *(String)*. Name of the authenticated user or an empty string if there is no authentication.
0 commit comments