Skip to content

Commit fd6f833

Browse files
authored
Amend and clarify README
Fixes #20
1 parent 9f83594 commit fd6f833

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ Raw CGI variables can be accessed through the `params` property of the socket ob
128128
Authorizer and filter requests
129129
------------------------------
130130

131-
Authorizer requests have no url. Response objects for the authorizer role expose three additional methods:
131+
Authorizer requests may have no url. Response objects for the authorizer role come with the `Content-Type` header already set to `text/plain` and expose three additional methods:
132132

133133
- `setVariable(name, value)`: sets CGI variables to be passed to subsequent request handlers.
134-
- `allow()`: responds with 200 (OK) status code.
135-
- `deny()`: responds with 403 (Forbidden) status code.
134+
- `allow()`: sends a 200 (OK) status code and closes the response
135+
- `deny()`: sends a 403 (Forbidden) status code and closes the response
136136

137-
Filter requests have an additional data stream exposed by the `data` property of [the socket object](#the-socket-object) (`req.socket.data`).
137+
Filter requests have an additional data stream exposed by the `dataStream` property of [the socket object](#the-socket-object) (`req.socket.dataStream`).
138138

139139

140140
The socket object

0 commit comments

Comments
 (0)