Commit Graph

27 Commits (fb3b789dca8a2cf050dad7a7bd445d4789eaabea)

Author SHA1 Message Date
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
Waqas Hussain 59bd215bb2 net.http.server: Fire global HTTP event when no specific handlers available. 14 years ago
Waqas Hussain becd794524 net.http.server: Missing <title/> in 404 Not Found response. 14 years ago
Waqas Hussain 06f2b0f3a4 net.http.{server|codes|parser}: Initial commit. 14 years ago