cleanup, docs
This commit is contained in:
@@ -7,6 +7,7 @@ reason : optional reason phrase override
|
||||
return value : none
|
||||
|
||||
:see
|
||||
>types
|
||||
0_Request
|
||||
redirect
|
||||
set_cookie
|
||||
@@ -14,6 +15,6 @@ 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");
|
||||
```
|
||||
:example
|
||||
context.set_status(200, "OK");
|
||||
print(context.flags.status, "\n");
|
||||
|
||||
Reference in New Issue
Block a user