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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -128,13 +128,13 @@ Raw CGI variables can be accessed through the `params` property of the socket ob
128
128
Authorizer and filter requests
129
129
------------------------------
130
130
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:
132
132
133
133
-`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
136
136
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`).
0 commit comments