Skip to content

Commit d17a058

Browse files
committed
fix fmt
1 parent 500c1d5 commit d17a058

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -189,23 +189,23 @@ It is possible to filter (allow or deny) requests with simple `access` JS functi
189189
`access` function is invoked with following parameters:
190190

191191
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.
203203
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.
209209

210210
## Synopsis
211211

0 commit comments

Comments
 (0)