Commit Graph

98 Commits (eeb98faa3a09ab9bdfeaa8ed9d2ff3d1d3a94de9)

Author SHA1 Message Date
Matthew Wild 8ebaee9c3d net.http.server: Move event formation to avoid traceback on missing Host header 7 years ago
Matthew Wild f5f6460b2e Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Kim Alvefur 95eac7d4c6 net.http.server: Delay host checks until after host-less event 7 years ago
Kim Alvefur 91c5bd7853 net.http.server: Fire an event without host 7 years ago
Kim Alvefur a31b6728d4 Revert 2dc7490899ae::5d6b252bc36f: Unfinished and broken 7 years ago
Kim Alvefur 83cd0e7ba7 net.http.server: Fix default host logic 7 years ago
Kim Alvefur c6540b14f9 net.http.server: Move handling of hosts to mod_http 7 years ago
Kim Alvefur fd5a55b5ab net.http.codes: "Correct" range of unassigned codes (thanks pep.) 8 years ago
Kim Alvefur 6098414f02 net.http.codes: Regenerate from IANA registry with tool 8 years ago
Kim Alvefur 843edf3cb1 net.http.server: Include response object in most http-error events 8 years ago
Kim Alvefur 3e7bffe8c8 net.http: Pass error all the way to callback 9 years ago
Kim Alvefur a206b98c0e net.http.parser: Don't collapse buffer when expecting a chunk and not enough data has been received 10 years ago
Kim Alvefur ed2b537cbd net.http.parser: Fix missing buffer length adjustment when parsing chunked streams 10 years ago
Kim Alvefur f30f5f6218 net.http.server: Add luacheck annotations 10 years ago
Kim Alvefur 47fe58f5ca net.http.server: Expose way to set http server options 10 years ago
Kim Alvefur 4fe3ec81e1 net.http.parser: Allow limits to be configurable via options callback 10 years ago
Kim Alvefur bdae29d754 net.http.parser: Add a limit on maximum buffer size, default to 20M 10 years ago
Kim Alvefur b50763dcf6 net.http.parser: Add a limit on content length, default to 10M 10 years ago
Kim Alvefur 47ed467f4f net.http.parser: Buffer into a table to reduce GC pressure, collapse to string when needed (fixes #603) 10 years ago
Kim Alvefur 4c89d04187 net.http.codes: Add HTTP status code 451 Unavailable For Legal Reasons from RFC 7725 10 years ago
Kim Alvefur 8c797be6c4 net.http.codes: Remove used argument 10 years ago
Kim Alvefur 0468aa76f1 net.http.parser: Remove unused argument [luacheck] 10 years ago
Kim Alvefur 3506b08847 net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot of efficiency according to a recent study) 10 years ago
Kim Alvefur 99ba4462fc net.http.server: Add response method for reading response body from a file handle 10 years ago
Kim Alvefur 83e7c91e01 net.http.server: Return from listen_on() whatever net.server.addserver() returns 10 years ago
Matthew Wild 6d8484bb7b net.http.server: Import util.cache 10 years ago
Matthew Wild 12f9aac248 net.http.server: Use new util.cache to remember wildcard event handlers 10 years ago
Kim Alvefur f95f7335df net.http.codes: Update from registry 11 years ago
Matthew Wild 5c1d94de1b net.http.server: Log event name when firing a request event 11 years ago
Kim Alvefur 4781a82cd8 net.http.server: Log names of the events fired 11 years ago
Matthew Wild a5f74207fd net.http.parser: Fix whitespace/indentation 11 years ago
daurnimator d13b001832 net.http.parser: Fix chunked encoding parsing across packet boundaries. 11 years ago
Matthew Wild 43bc05285d net.http.parser: Support status code 101 and allow handling of the received data by someone else 12 years ago
Matthew Wild 899b6d53ae net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) 12 years ago
Kim Alvefur 13844f7635 net.http.server: Comment out a log message 12 years ago
Daurnimator 0f866905fd net.http.server: Fix some typos introduced in 420c0d3b8583. 12 years ago
Daurnimator 75c7b9704a net.http.server: Add prepare_header() and finish_response() to allow sending chunked responses via the API 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur 74b83382ab net.http.server: Fix Keep-Alive requests with HTTP 1.0 13 years ago
Matthew Wild c178786878 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 4602591c38 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 13 years ago
Matthew Wild 842b340ebe net.server.http: Add a comment 13 years ago
Matthew Wild c981dcb50d net.server.http: Add a comment 13 years ago
Matthew Wild 61f88df542 net.server.http: Ensure that event map cannot grow forever (limit to 10K wildcard-only entries) 13 years ago
Matthew Wild a2fd9431f4 net.server.http: Ensure that event map cannot grow forever (limit to 10K wildcard-only entries) 13 years ago
Waqas Hussain 76d4f07d2b net.http.server: The correct Connection header value to look for is Keep-Alive, not keep-alive. 13 years ago
Matthew Wild 427b82db0f net.http.parser: Remove accidentally-committed debugging 13 years ago
Matthew Wild 91b727be71 net.http.parser: Fix off-by-one error in chunked encoding parser 13 years ago
Matthew Wild fec86f72cf net.http.parser: Fix chunked encoding response parsing, and make it more robust 13 years ago
Matthew Wild 1ebc90c25b net.http.parser: Convert status_code to a number before trying to compare it to numbers 13 years ago