From 729be81a85d91099fe97912bcee4a9db082770b5 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sun, 11 Jul 2021 22:42:08 -0700 Subject: [PATCH] Update GetHeaders and GetParams descriptions in redbean help. --- tool/net/help.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/net/help.txt b/tool/net/help.txt index 5f618c5e1..a1f98dbf1 100644 --- a/tool/net/help.txt +++ b/tool/net/help.txt @@ -570,7 +570,7 @@ FUNCTIONS message, then this function will fold those multiple entries into a single string. - GetHeaders() → table[name:str,value:str] + GetHeaders() → {name:str = value:str, ...} Returns HTTP headers as dictionary mapping header key strings to their UTF-8 decoded values. The ordering of headers from the 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 accepted too, which might contain characters like &". - GetParams() → array[array[str]] + GetParams() → {{name:str[, value:str]}, ...} Returns name=value parameters from Request-URL and application/x-www-form-urlencoded message body in the order they were received. This may contain duplicates. The inner array will