Documented js_access directive and r.readRequest* methods in njs.#272
Documented js_access directive and r.readRequest* methods in njs.#272xeioex wants to merge 2 commits intonginx:mainfrom
Conversation
|
Issues Found In the js_access example (ngx_http_js_module.xml): Alphabetical Ordering in the Index Table (moderate) In reference.xml, the four new readRequest* entries are inserted after r.remoteAddress: "and friends" — Informal Language (minor) In the updates to r.requestBody and r.requestText: maxKeys Option — Incomplete Description (minor) The maxKeys option for r.readRequestForm() only says "caps the number of fields parsed from the form" with no mention of:
r.return() Amendment — Missing Wrapper (minor) The new sentence appended to the r.return() : js_access Syntax — Intentional Restriction Undocumented (minor) js_content accepts both function and module.function, but js_access only accepts module.function. If this restriction is intentional it should be noted explicitly, e.g. "Unlike js_content, only Missing Russian Translation for reference.xml (minor) The diff updates xml/ru/docs/http/ngx_http_js_module.xml but not xml/ru/docs/njs/reference.xml. If a Russian version of the reference exists, it should cover r.decline() and the readRequest* What's Done Well
Summary In the code example — as written, it implies that calling r.return(401) is sufficient to deny access, which contradicts the |
The example as written denies access correctly. The access handler then returns 401. That said, the wording "On normal completion the handler grants access" reads ambiguously, which is what made the example look broken. Reworded to make the precondition explicit: "A handler that returns without calling Also added an explicit |
corrected. |
We do this in commit log regularly, but yes, not in the reference. corrected. |
added the default and what happens when cap is reached. |
added tags. |
this is incorrect for english version. But this still exists in Russian documentation, corrected with a separate commit. |
The Russian version of the references, does not exist. this is a separate task. |
No description provided.