Skip to content

Commit eadf395

Browse files
committed
Documented changes to header behaviour
1 parent ea102b5 commit eadf395

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:
219221
When 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.

0 commit comments

Comments
 (0)