This commit is contained in:
root
2026-06-15 21:42:50 +00:00
parent 34a97e2577
commit 99cd92fb4a
126 changed files with 1615 additions and 1057 deletions
+19
View File
@@ -0,0 +1,19 @@
:sig
void Request::set_status(s32 code, String reason = "")
:params
code : HTTP status code
reason : optional reason phrase override
return value : none
:see
0_Request
redirect
set_cookie
:content
Sets the request status line and mirrors the numeric status into `context.flags.status`. When `reason` is omitted, common HTTP status codes get their standard phrase. FastCGI-style requests use a `Status:` prefix; other requests use `HTTP/1.1`.
```cpp
context.set_status(404, "Not Found");
```