File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ Ready for testing. Probably production ready in most cases, though not yet prove
1111* HTTP 1.0 and 1.1
1212* Streaming interface to reading bodies using coroutines, for predictable memory usage in Lua land.
1313* Alternative simple interface for singleshot requests without manual connection step.
14+ * Headers treated case insensitively.
1415* Chunked transfer encoding.
1516* Keepalive.
1617* Pipelining.
1718* Trailers.
1819
20+
1921# API
2022
2123* [ new] ( #name )
@@ -219,7 +221,7 @@ The `params` table accepts the following fields:
219221When the request is successful, ` res ` will contain the following fields:
220222
221223* ` status ` The status code.
222- * ` headers ` A table of headers.
224+ * ` headers ` A table of headers. Multiple headers with the same field name will be presented as a table of values.
223225* ` has_body ` A boolean flag indicating if there is a body to be read.
224226* ` body_reader ` An iterator function for reading the body in a streaming fashion.
225227* ` read_body ` A method to read the entire body into a string.
You can’t perform that action at this time.
0 commit comments