aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/parser.lua
Commit message (Collapse)AuthorAgeFilesLines
* net.http.parser: Allow specifying sink for large request bodiesKim Alvefur2020-08-011-4/+22
| | | | | | | This enables uses such as saving uploaded files directly to a file on disk or streaming parsing of payloads. See #726
* net.http.parser: Switch to util.dbuffer for buffering incoming dataKim Alvefur2020-08-011-61/+49
| | | | | | This is primarily a step towards saving uploads directly to files, tho this should hopefully be more efficient than collapsing the entire buffer to a single string every now and then.
* net.http.parser: Add TODO related to #726Kim Alvefur2020-01-011-0/+1
|
* net.http.parser: Silence warning about unused variable [luacheck]Kim Alvefur2019-12-231-1/+2
|
* net.http: Pass error all the way to callbackKim Alvefur2017-04-021-1/+1
|
* net.http.parser: Don't collapse buffer when expecting a chunk and not enough ↵Kim Alvefur2016-08-261-0/+3
| | | | data has been received
* net.http.parser: Fix missing buffer length adjustment when parsing chunked ↵Kim Alvefur2016-08-261-0/+1
| | | | streams
* Merge 0.9->0.10Kim Alvefur2016-08-181-7/+26
|\
| * net.http.parser: Allow limits to be configurable via options callbackKim Alvefur2016-08-181-2/+2
| |
| * net.http.parser: Add a limit on maximum buffer size, default to 20MKim Alvefur2016-08-181-0/+2
| |
| * net.http.parser: Add a limit on content length, default to 10MKim Alvefur2016-08-181-0/+2
| |
| * net.http.parser: Buffer into a table to reduce GC pressure, collapse to ↵Kim Alvefur2016-08-131-7/+22
| | | | | | | | string when needed (fixes #603)
* | net.http.parser: Remove unused argument [luacheck]Kim Alvefur2016-08-131-1/+1
|/
* net.http.parser: Fix whitespace/indentationMatthew Wild2014-11-181-5/+5
|
* net.http.parser: Fix chunked encoding parsing across packet boundaries.daurnimator2014-11-101-1/+1
|
* net.http.parser: Support status code 101 and allow handling of the received ↵Matthew Wild2014-09-031-1/+5
| | | | data by someone else
* net.http.parser: Remove accidentally-committed debuggingMatthew Wild2013-04-151-1/+0
|
* net.http.parser: Fix off-by-one error in chunked encoding parserMatthew Wild2013-04-151-1/+2
|
* net.http.parser: Fix chunked encoding response parsing, and make it more robustMatthew Wild2013-04-111-15/+20
|
* net.http.parser: Convert status_code to a number before trying to compare it ↵Matthew Wild2013-04-111-0/+1
| | | | to numbers
* net.http.parser: Break when no more usable data in buffer (client part of ↵Matthew Wild2013-04-111-0/+2
| | | | e5ec60dfb202)
* net.http.parser: Depend on util.http instead of net.http for urlencodeMatthew Wild2013-04-111-1/+1
|
* net.http.parser: Ensure full URL in status line contains a path.Waqas Hussain2013-02-081-1/+1
|
* net.http.parser: Fix traceback on invalid URL in status line.Waqas Hussain2013-02-081-0/+1
|
* net.http.parser: Abort if no status line is received.Kim Alvefur2013-01-081-0/+1
|
* net.http.parser: Skip url.parse when we don't have a full URL (also fixes ↵Waqas Hussain2012-12-211-1/+8
| | | | traceback on paths starting with '//').
* net.http.parser: Fix syntax error introduced in c5edb08fc7cb.Waqas Hussain2012-12-031-1/+1
|
* net.http.parser: Collapse multiple consecutive slashes in a path to a single ↵Matthew Wild2012-11-291-1/+1
| | | | slash
* net.http.parser: Break loop when no more usable data in bufferMatthew Wild2012-05-251-0/+2
|
* net.http.parser: Keep the Host header no host is present in the URIKim Alvefur2012-05-151-1/+1
|
* net.http.parser: Do full URL decoding and parsing (e.g. adds ↵Matthew Wild2012-05-121-5/+7
| | | | request.url.query when present)
* mod_http_files, net.http.parser: Move path normalization to net.http.parser ↵Matthew Wild2012-04-261-1/+19
| | | | so that all modules can benefit
* net.http.parser: Handle full URLs in status line.Waqas Hussain2012-04-261-1/+6
|
* net.http.{server|codes|parser}: Initial commit.Waqas Hussain2012-04-081-0/+116