Update GetHeaders and GetParams descriptions in redbean help.

This commit is contained in:
Paul Kulchenko 2021-07-11 22:42:08 -07:00
parent 8c4cce043c
commit 729be81a85

View file

@ -570,7 +570,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() → table[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
@ -604,7 +604,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() → array[array[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