Commit Graph

55 Commits (8a38579fa00e08ea10ff0eee2e4cdb7cd6bb1a3a)

Author SHA1 Message Date
Kim Alvefur 843edf3cb1 net.http.server: Include response object in most http-error events 8 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 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
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 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
Marco Cirillo d6c4bffd9b net.http.server: add API to allow firing events directly on the server. 13 years ago
Matthew Wild 3c45ca81a2 net.http.server: Don't overwrite existing response.headers when returning a response object from a HTTP handler (waqas says it's wrong) 13 years ago
Waqas Hussain db6081d6e0 net.http.server: Ensure HTTP callbacks are never called recursively for pipelined requests. 13 years ago
Florian Zeitz 2eddb12845 net.http.server: Properly handle persistent connections 13 years ago
Matthew Wild d4578e0677 net.http.server: Code cleanup/adjustment now that send_response() accepts response.body 14 years ago
Matthew Wild cc6bcc5877 net.http.server: Use response.body if it exists and body is not specified to send_response 14 years ago
Matthew Wild 6229968685 net.http.server: Remove unused imports and variables (fixes traceback due to removed net.httpserver) 14 years ago
Matthew Wild 7f6dcc373f net.http.server: Try default_host if client sent no host anywhere, otherwise... fail. It's 2012. 14 years ago
Matthew Wild e8746c77da net.http.server: Fix traceback on missing host header (thanks darkrain) 14 years ago
Matthew Wild e865b1b3fe net.http.server, mod_http: Support http_default_host config option to specify where to direct requests for unknown HTTP vhosts 14 years ago
Matthew Wild 14dcbf13d5 net.http.server: Improve comment 14 years ago
Matthew Wild ecc47f2920 net.http.server: Remove unused variable 14 years ago
Matthew Wild 6cc3d15683 net.http.server: Correctly cache results of handler indexing, and also cache failures 14 years ago
Matthew Wild 887ca5f9fe Revert 98bfebb38705, moved to net.http.parser in 4fc99f1b7570 14 years ago
Matthew Wild a54e59650f net.http.server: Fire http-error 400 if request fails sanity checks 14 years ago
Matthew Wild 8edd8e0e8d net.http.server: Make error handling overrideable via 'http-error' event 14 years ago
Matthew Wild e3433dca1d net.server.http: Parse absolute URIs in requests (thanks Maranda) 14 years ago
Matthew Wild 2415fcd5c2 net.http.server: Expose events object (for debug purposes) 14 years ago
Matthew Wild dbb3dc6a01 net.http.server: Lower score of wildcard handlers to ensure specific handlers beat them 14 years ago
Matthew Wild 37840f043c net.http.server: Fix to compare priority if path lengths are the same (logic fail) 14 years ago
Matthew Wild 15585ed873 net.http.server: Support for on_destroy callback on response objects, and a 'finished' flag to say when they are destroyed (responded to or connection closed) 14 years ago
Matthew Wild b6ef379c9a net.http.server: Small fix to comment 14 years ago
Matthew Wild 8e4f5391a2 net.http.server: Remove legacy compatibility 14 years ago
Matthew Wild 7cb22f77a7 net.http.server: Handle results returned by handlers, and send as a response. Also removes explicit firing of '*', which can now be done via wildcard events. 14 years ago
Matthew Wild 37f43d0189 net.http.server: Remove debug message 14 years ago
Matthew Wild f2b4126967 net.http.server: Support for wildcard events (events that end with '/*') 14 years ago
Waqas Hussain c065013ced net.http.server: Fix legacy net.httpserver fallback (httpserver is no longer a global). 14 years ago