Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.http.server: Fix reporting of missing Host header | Kim Alvefur | 2020-06-23 | 1 | -1/+2 |
| | | | | | The "Missing or invalid 'Host' header" case was dead code previously because `host` was always at least an empty string. | ||||
* | net.http.server: Strip port from Host header in IPv6 friendly way (fix #1302) | Kim Alvefur | 2020-06-23 | 1 | -1/+1 |
| | | | | | E.g. given `[::1]:5280` it would previously result in only `[` instead of the correct `[::1]` | ||||
* | 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.server: Include response object in most http-error events | Kim Alvefur | 2017-10-27 | 1 | -3/+5 |
| | |||||
* | net.http.server: Add luacheck annotations | Kim Alvefur | 2016-08-18 | 1 | -2/+2 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2016-08-18 | 1 | -1/+8 |
|\ | |||||
| * | net.http.server: Expose way to set http server options | Kim Alvefur | 2016-08-18 | 1 | -1/+8 |
| | | |||||
* | | 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 |
| | | |||||
* | | 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-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 |
|\| | |||||
| * | net.http.server: Comment out a log message | Kim Alvefur | 2014-08-27 | 1 | -1/+1 |
| | | |||||
* | | net.http.server: Fix some typos introduced in 420c0d3b8583. | Daurnimator | 2014-04-15 | 1 | -4/+3 |
| | | |||||
* | | net.http.server: Add prepare_header() and finish_response() to allow sending ↵ | Daurnimator | 2014-04-15 | 1 | -9/+17 |
| | | | | | | | | chunked responses via the API | ||||
* | | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -2/+2 |
|/ | |||||
* | net.http.server: Fix Keep-Alive requests with HTTP 1.0 | Kim Alvefur | 2013-07-22 | 1 | -1/+1 |
| | |||||
* | mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit ↵ | Matthew Wild | 2013-04-22 | 1 | -2/+2 |
| | | | | traceback function), to make it clearer where an error occured | ||||
* | net.server.http: Add a comment | Matthew Wild | 2013-04-22 | 1 | -0/+1 |
| | |||||
* | net.server.http: Ensure that event map cannot grow forever (limit to 10K ↵ | Matthew Wild | 2013-04-22 | 1 | -0/+8 |
| | | | | wildcard-only entries) | ||||
* | net.http.server: The correct Connection header value to look for is ↵ | Waqas Hussain | 2013-04-17 | 1 | -1/+1 |
| | | | | Keep-Alive, not keep-alive. | ||||
* | net.http.server: add API to allow firing events directly on the server. | Marco Cirillo | 2013-04-07 | 1 | -0/+3 |
| | |||||
* | net.http.server: Don't overwrite existing response.headers when returning a ↵ | Matthew Wild | 2013-03-31 | 1 | -1/+7 |
| | | | | response object from a HTTP handler (waqas says it's wrong) | ||||
* | net.http.server: Ensure HTTP callbacks are never called recursively for ↵ | Waqas Hussain | 2013-02-26 | 1 | -9/+10 |
| | | | | pipelined requests. | ||||
* | net.http.server: Properly handle persistent connections | Florian Zeitz | 2013-01-12 | 1 | -3/+14 |
| | |||||
* | net.http.server: Code cleanup/adjustment now that send_response() accepts ↵ | Matthew Wild | 2012-04-28 | 1 | -3/+1 |
| | | | | response.body | ||||
* | net.http.server: Use response.body if it exists and body is not specified to ↵ | Matthew Wild | 2012-04-28 | 1 | -1/+1 |
| | | | | send_response | ||||
* | net.http.server: Remove unused imports and variables (fixes traceback due to ↵ | Matthew Wild | 2012-04-28 | 1 | -4/+2 |
| | | | | removed net.httpserver) | ||||
* | net.http.server: Try default_host if client sent no host anywhere, ↵ | Matthew Wild | 2012-04-28 | 1 | -4/+4 |
| | | | | otherwise... fail. It's 2012. | ||||
* | net.http.server: Fix traceback on missing host header (thanks darkrain) | Matthew Wild | 2012-04-28 | 1 | -2/+1 |
| | |||||
* | net.http.server, mod_http: Support http_default_host config option to ↵ | Matthew Wild | 2012-04-27 | 1 | -41/+56 |
| | | | | specify where to direct requests for unknown HTTP vhosts | ||||
* | net.http.server: Improve comment | Matthew Wild | 2012-04-27 | 1 | -1/+1 |
| | |||||
* | net.http.server: Remove unused variable | Matthew Wild | 2012-04-27 | 1 | -1/+0 |
| | |||||
* | net.http.server: Correctly cache results of handler indexing, and also cache ↵ | Matthew Wild | 2012-04-27 | 1 | -10/+14 |
| | | | | failures | ||||
* | Merge with backout | Matthew Wild | 2012-04-26 | 1 | -4/+0 |
|\ | |||||
| * | Revert 98bfebb38705, moved to net.http.parser in 4fc99f1b7570 | Matthew Wild | 2012-04-26 | 1 | -4/+0 |
| | | |||||
* | | net.http.server: Fire http-error 400 if request fails sanity checks | Matthew Wild | 2012-04-26 | 1 | -1/+8 |
| | | |||||
* | | net.http.server: Make error handling overrideable via 'http-error' event | Matthew Wild | 2012-04-26 | 1 | -4/+12 |
|/ |