Commit Graph

49 Commits (71d2dced8dd98ce1b1bf67e2ebbae981cf85287c)

Author SHA1 Message Date
Kim Alvefur 92a6c7fbd2 net.http.server: Return from listen_on() whatever net.server.addserver() returns 10 years ago
Matthew Wild 3917c11387 net.http.server: Import util.cache 10 years ago
Matthew Wild 14f6ec5e01 net.http.server: Use new util.cache to remember wildcard event handlers 10 years ago
Matthew Wild f25f49c34d net.http.server: Log event name when firing a request event 11 years ago
Matthew Wild 58edf57b1f 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 585ce453a8 net.http.server: Comment out a log message 12 years ago
Kim Alvefur 1484f5bb65 net.http.server: Log names of the events fired 11 years ago
Daurnimator b31e782722 net.http.server: Fix some typos introduced in 420c0d3b8583. 12 years ago
Daurnimator 98f1c94f12 net.http.server: Add prepare_header() and finish_response() to allow sending chunked responses via the API 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Kim Alvefur 40216ec868 net.http.server: Fix Keep-Alive requests with HTTP 1.0 13 years ago
Matthew Wild 70e81c21b7 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 c63dc9181d 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 e1e68e5b13 net.server.http: Add a comment 13 years ago
Matthew Wild 2592e23bae net.server.http: Add a comment 13 years ago
Matthew Wild 90e3d4c852 net.server.http: Ensure that event map cannot grow forever (limit to 10K wildcard-only entries) 13 years ago
Matthew Wild fafbf9763f net.server.http: Ensure that event map cannot grow forever (limit to 10K wildcard-only entries) 13 years ago
Waqas Hussain 211f575c2a net.http.server: The correct Connection header value to look for is Keep-Alive, not keep-alive. 13 years ago
Marco Cirillo a7e34e1b73 net.http.server: add API to allow firing events directly on the server. 13 years ago
Matthew Wild 48475bcf22 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 b9e7f08143 net.http.server: Ensure HTTP callbacks are never called recursively for pipelined requests. 13 years ago
Florian Zeitz 1931de0924 net.http.server: Properly handle persistent connections 13 years ago
Matthew Wild 2f5ffa76dc net.http.server: Code cleanup/adjustment now that send_response() accepts response.body 14 years ago
Matthew Wild cd8b026b99 net.http.server: Use response.body if it exists and body is not specified to send_response 14 years ago
Matthew Wild 423b3a5296 net.http.server: Remove unused imports and variables (fixes traceback due to removed net.httpserver) 14 years ago
Matthew Wild bdbf9df051 net.http.server: Try default_host if client sent no host anywhere, otherwise... fail. It's 2012. 14 years ago
Matthew Wild a5affc4e5d net.http.server: Fix traceback on missing host header (thanks darkrain) 14 years ago
Matthew Wild fb9c619707 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 987c79e4d0 net.http.server: Improve comment 14 years ago
Matthew Wild 6d82c54cfd net.http.server: Remove unused variable 14 years ago
Matthew Wild 53a4656587 net.http.server: Correctly cache results of handler indexing, and also cache failures 14 years ago
Matthew Wild ec56b1a798 Revert 98bfebb38705, moved to net.http.parser in 4fc99f1b7570 14 years ago
Matthew Wild 9db4ba52f9 net.http.server: Fire http-error 400 if request fails sanity checks 14 years ago
Matthew Wild de13771c8b net.http.server: Make error handling overrideable via 'http-error' event 14 years ago
Matthew Wild 99e8f3cff5 net.server.http: Parse absolute URIs in requests (thanks Maranda) 14 years ago
Matthew Wild 0e5b2786b4 net.http.server: Expose events object (for debug purposes) 14 years ago
Matthew Wild e3d135d3f1 net.http.server: Lower score of wildcard handlers to ensure specific handlers beat them 14 years ago
Matthew Wild 2416b4e47b net.http.server: Fix to compare priority if path lengths are the same (logic fail) 14 years ago
Matthew Wild 7e60956c9e 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 0558bb4bb6 net.http.server: Small fix to comment 14 years ago
Matthew Wild e6f8d445c0 net.http.server: Remove legacy compatibility 14 years ago
Matthew Wild b23e6a2ef0 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 58896e1972 net.http.server: Remove debug message 14 years ago
Matthew Wild b19b3bb07d net.http.server: Support for wildcard events (events that end with '/*') 14 years ago
Waqas Hussain 608d074ba0 net.http.server: Fix legacy net.httpserver fallback (httpserver is no longer a global). 14 years ago
Waqas Hussain 7f2c53a45d net.http.server: Fire global HTTP event when no specific handlers available. 14 years ago
Waqas Hussain 4c43038f74 net.http.server: Missing <title/> in 404 Not Found response. 14 years ago
Waqas Hussain d95a61cf4e net.http.{server|codes|parser}: Initial commit. 14 years ago