Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.http.server: Factor out handling of event response for easier reuse | Kim Alvefur | 2019-11-01 | 1 | -31/+34 |
| | |||||
* | net.http.codes: Avoid implicit number -> string coercion | Kim Alvefur | 2019-11-01 | 1 | -1/+1 |
| | |||||
* | net.http.files: Explicitly convert number to string, avoiding implicit coercion | Kim Alvefur | 2019-10-12 | 1 | -1/+1 |
| | |||||
* | net.http.server: Explicitly convert number to string, avoiding implicit coercion | Kim Alvefur | 2019-10-12 | 1 | -1/+1 |
| | |||||
* | net.http.server: Re-fire unhandled HEAD requsts as GET events (fixes #1447) | Kim Alvefur | 2019-10-12 | 1 | -0/+11 |
| | | | | | | BC: This overloads the GET event. Previous commit ensures HEAD requests are sent without a body. | ||||
* | net.http.server: Ensure HEAD requests are sent with empty body | Kim Alvefur | 2019-10-12 | 1 | -0/+16 |
| | |||||
* | net.http.files: Fix cache handling | Kim Alvefur | 2019-06-29 | 1 | -1/+1 |
| | | | | Typo that broke the LRU-ness of the caching | ||||
* | net.http.files: Bump cache hits so they stay cached | Kim Alvefur | 2019-05-04 | 1 | -0/+1 |
| | | | | It's not an LRU cache unless this is done. | ||||
* | net.http.files: Make into standalone library | Kim Alvefur | 2019-04-05 | 1 | -64/+14 |
| | |||||
* | net.http.files: Copy of mod_http_files | Kim Alvefur | 2019-04-05 | 1 | -0/+198 |
| | | | | | | | | | The intent is to make it easier to reuse and simplify mod_http_files. Currently modules will use the serve() function exported by mod_http_files in order to serve their own files. This makes it unclear whether mod_http_files should be doing anything on its own. Moving the logic into a separate module should help here, as well as make re-use outside of prosody easier. | ||||
* | net.http.server: Move event formation to avoid traceback on missing Host header | Matthew Wild | 2018-11-13 | 1 | -1/+1 |
| | |||||
* | Many things: switch from hacky multi-arg xpcall implementations to a ↵ | Matthew Wild | 2018-10-26 | 1 | -6/+2 |
| | | | | standard util.xpcall | ||||
* | net.http.server: Delay host checks until after host-less event | Kim Alvefur | 2018-09-23 | 1 | -9/+18 |
| | | | | This allows handling events without any hosts enabled. | ||||
* | net.http.server: Fire an event without host | Kim Alvefur | 2018-09-21 | 1 | -3/+8 |
| | |||||
* | Revert 2dc7490899ae::5d6b252bc36f: Unfinished and broken | Kim Alvefur | 2018-09-21 | 1 | -2/+2 |
| | |||||
* | net.http.server: Fix default host logic | Kim Alvefur | 2018-09-21 | 1 | -1/+1 |
| | | | | This was used to construct the event name previously | ||||
* | net.http.server: Move handling of hosts to mod_http | Kim Alvefur | 2018-09-21 | 1 | -1/+1 |
| | | | | | Now an event like `GET /path` is fired at first, and mod\_http dispatches the old `GET host/path` events. | ||||
* | net.http.codes: "Correct" range of unassigned codes (thanks pep.) | Kim Alvefur | 2018-08-12 | 1 | -1/+1 |
| | |||||
* | net.http.codes: Regenerate from IANA registry with tool | Kim Alvefur | 2018-08-11 | 1 | -47/+59 |
| | |||||
* | net.http.server: Include response object in most http-error events | Kim Alvefur | 2017-10-27 | 1 | -3/+5 |
| | |||||
* | net.http: Pass error all the way to callback | Kim Alvefur | 2017-04-02 | 1 | -1/+1 |
| | |||||
* | net.http.parser: Don't collapse buffer when expecting a chunk and not enough ↵ | Kim Alvefur | 2016-08-26 | 1 | -0/+3 |
| | | | | data has been received | ||||
* | net.http.parser: Fix missing buffer length adjustment when parsing chunked ↵ | Kim Alvefur | 2016-08-26 | 1 | -0/+1 |
| | | | | streams | ||||
* | net.http.server: Add luacheck annotations | Kim Alvefur | 2016-08-18 | 1 | -2/+2 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2016-08-18 | 2 | -8/+34 |
|\ | |||||
| * | net.http.server: Expose way to set http server options | Kim Alvefur | 2016-08-18 | 1 | -1/+8 |
| | | |||||
| * | net.http.parser: Allow limits to be configurable via options callback | Kim Alvefur | 2016-08-18 | 1 | -2/+2 |
| | | |||||
| * | net.http.parser: Add a limit on maximum buffer size, default to 20M | Kim Alvefur | 2016-08-18 | 1 | -0/+2 |
| | | |||||
| * | net.http.parser: Add a limit on content length, default to 10M | Kim Alvefur | 2016-08-18 | 1 | -0/+2 |
| | | |||||
| * | net.http.parser: Buffer into a table to reduce GC pressure, collapse to ↵ | Kim Alvefur | 2016-08-13 | 1 | -7/+22 |
| | | | | | | | | string when needed (fixes #603) | ||||
* | | net.http.codes: Add HTTP status code 451 Unavailable For Legal Reasons from ↵ | Kim Alvefur | 2016-08-13 | 1 | -0/+1 |
| | | | | | | | | RFC 7725 | ||||
* | | net.http.codes: Remove used argument | Kim Alvefur | 2016-08-13 | 1 | -1/+1 |
| | | |||||
* | | net.http.parser: Remove unused argument [luacheck] | Kim Alvefur | 2016-08-13 | 1 | -1/+1 |
| | | |||||
* | | net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot ↵ | Kim Alvefur | 2016-08-08 | 1 | -1/+1 |
| | | | | | | | | of efficiency according to a recent study) | ||||
* | | net.http.server: Add response method for reading response body from a file ↵ | Kim Alvefur | 2016-07-11 | 1 | -0/+42 |
| | | | | | | | | handle | ||||
* | | net.http.server: Return from listen_on() whatever net.server.addserver() returns | Kim Alvefur | 2016-01-16 | 1 | -1/+1 |
| | | |||||
* | | net.http.server: Import util.cache | Matthew Wild | 2015-12-03 | 1 | -0/+1 |
| | | |||||
* | | net.http.server: Use new util.cache to remember wildcard event handlers | Matthew Wild | 2015-12-03 | 1 | -5/+5 |
| | | |||||
* | | net.http.codes: Update from registry | Kim Alvefur | 2015-05-14 | 1 | -3/+9 |
| | | |||||
* | | Merge 0.9->0.10 (third time lucky) | Matthew Wild | 2015-03-27 | 1 | -1/+1 |
|\| | |||||
| * | net.http.server: Log event name when firing a request event | Matthew Wild | 2015-03-14 | 1 | -1/+1 |
| | | |||||
* | | net.http.server: Log names of the events fired | Kim Alvefur | 2014-12-08 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.9->0.10 | Kim Alvefur | 2014-11-20 | 1 | -6/+6 |
|\| | |||||
| * | net.http.parser: Fix whitespace/indentation | Matthew Wild | 2014-11-18 | 1 | -5/+5 |
| | | |||||
| * | net.http.parser: Fix chunked encoding parsing across packet boundaries. | daurnimator | 2014-11-10 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.9->0.10 | Matthew Wild | 2014-09-03 | 1 | -1/+5 |
|\| | |||||
| * | net.http.parser: Support status code 101 and allow handling of the received ↵ | Matthew Wild | 2014-09-03 | 1 | -1/+5 |
| | | | | | | | | data by someone else | ||||
* | | Merge 0.9->0.10 | Kim Alvefur | 2014-09-02 | 1 | -0/+4 |
|\| | |||||
| * | net.http, net.http.server, mod_c2s, mod_s2s, mod_component, ↵ | Matthew Wild | 2014-08-29 | 1 | -0/+4 |
| | | | | | | | | mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) | ||||
* | | Merge 0.9->0.10 | Matthew Wild | 2014-08-28 | 1 | -1/+1 |
|\| |