mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 10:18:31 +00:00
Add GetResponseBody to redbean (#502)
* Add GetResponseBody to redbean to get access to generated response * Update GetStatus to return status code set by redbean itself (outside of Lua code)
This commit is contained in:
parent
516b68606f
commit
b5904947e9
2 changed files with 15 additions and 2 deletions
|
@ -1055,6 +1055,10 @@ FUNCTIONS
|
|||
IsPrivateIp or IsLoopbackIp return true. When multiple addresses
|
||||
are present in the header, the last/right-most address is used.
|
||||
|
||||
GetResponseBody() → str
|
||||
Returns the response message body if present or an empty string.
|
||||
Also returns an empty string during streaming.
|
||||
|
||||
GetClientAddr() → ip:uint32,port:uint16
|
||||
Returns client socket ip4 address and port, e.g. 0x01020304,31337
|
||||
would represent 1.2.3.4:31337. Please consider using GetRemoteAddr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue