cleanup, docs

This commit is contained in:
root
2026-06-16 12:21:31 +00:00
parent dff1959341
commit ea08d5f28b
296 changed files with 1571 additions and 1940 deletions
+3 -3
View File
@@ -6,6 +6,7 @@ url : target URL for the redirect
code : optional HTTP redirect status, defaults to `302`
:see
>uri
2_Request_set_status
0_Request
@@ -14,7 +15,6 @@ Sets the `Location` response header and updates the current HTTP status code.
Use this helper instead of manually assigning `context.header["Location"]` and `context.set_status(...)` when you want to redirect the current response.
Related:
- PHP: `header("Location: ...")` together with `http_response_code()` or implicit redirect semantics
- JavaScript / Node.js: `res.redirect(...)`, setting `Location`, or returning a redirect `Response`
:example
print("redirect(\"/next\") sends an HTTP redirect.\n");