mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
Update redbean documentation for consistency and to fix a typo (#97).
This commit is contained in:
parent
f7b4804251
commit
2638c95993
1 changed files with 4 additions and 4 deletions
|
@ -591,7 +591,7 @@ FUNCTIONS
|
||||||
message, then this function will fold those multiple entries into
|
message, then this function will fold those multiple entries into
|
||||||
a single string.
|
a single string.
|
||||||
|
|
||||||
GetHeaders() → {name:str = value:str, ...}
|
GetHeaders() → {name:str=value:str,...}
|
||||||
Returns HTTP headers as dictionary mapping header key strings to
|
Returns HTTP headers as dictionary mapping header key strings to
|
||||||
their UTF-8 decoded values. The ordering of headers from the
|
their UTF-8 decoded values. The ordering of headers from the
|
||||||
request message is not preserved. Whether or not the same key can
|
request message is not preserved. Whether or not the same key can
|
||||||
|
@ -625,7 +625,7 @@ FUNCTIONS
|
||||||
Anything else that the RFC classifies as a "token" string is
|
Anything else that the RFC classifies as a "token" string is
|
||||||
accepted too, which might contain characters like &".
|
accepted too, which might contain characters like &".
|
||||||
|
|
||||||
GetParams() → {{name:str[, value:str]}, ...}
|
GetParams() → {{name:str[,value:str]},...}
|
||||||
Returns name=value parameters from Request-URL and
|
Returns name=value parameters from Request-URL and
|
||||||
application/x-www-form-urlencoded message body in the order they
|
application/x-www-form-urlencoded message body in the order they
|
||||||
were received. This may contain duplicates. The inner array will
|
were received. This may contain duplicates. The inner array will
|
||||||
|
@ -673,7 +673,7 @@ FUNCTIONS
|
||||||
minor (mm), and patch (pp) versions encoded. The version value 1.4
|
minor (mm), and patch (pp) versions encoded. The version value 1.4
|
||||||
would be represented as 0x010400.
|
would be represented as 0x010400.
|
||||||
|
|
||||||
GetZipPaths() → array[str]
|
GetZipPaths() → {path:str,...}
|
||||||
Returns paths of all assets in the zip central directory, prefixed
|
Returns paths of all assets in the zip central directory, prefixed
|
||||||
by a slash.
|
by a slash.
|
||||||
|
|
||||||
|
@ -866,7 +866,7 @@ FUNCTIONS
|
||||||
|
|
||||||
Sleep(seconds:number)
|
Sleep(seconds:number)
|
||||||
Sleeps the specified number of seconds (can be fractional). The
|
Sleeps the specified number of seconds (can be fractional). The
|
||||||
smallest interval is a millisecond.
|
smallest interval is a microsecond.
|
||||||
|
|
||||||
Route([host:str,[path:str]])
|
Route([host:str,[path:str]])
|
||||||
Instructs redbean to follow the normal HTTP serving path. This
|
Instructs redbean to follow the normal HTTP serving path. This
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue