Commit Graph

89 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 8ea1a04ab9 net.http.server: Include response object in most http-error events 8 years ago
Kim Alvefur 3811ceb6ca net.http: Pass error all the way to callback 9 years ago
Kim Alvefur 5c1d761d86 net.http.parser: Don't collapse buffer when expecting a chunk and not enough data has been received 9 years ago
Kim Alvefur d51cb366d5 net.http.parser: Fix missing buffer length adjustment when parsing chunked streams 9 years ago
Kim Alvefur 33a8994b3c net.http.server: Add luacheck annotations 10 years ago
Kim Alvefur 369c2c0550 net.http.server: Expose way to set http server options 10 years ago
Kim Alvefur c3ed163682 net.http.parser: Allow limits to be configurable via options callback 10 years ago
Kim Alvefur 113551b7c8 net.http.parser: Add a limit on maximum buffer size, default to 20M 10 years ago
Kim Alvefur 3f97ca99c3 net.http.parser: Add a limit on content length, default to 10M 10 years ago
Kim Alvefur 6bfab345b9 net.http.parser: Buffer into a table to reduce GC pressure, collapse to string when needed (fixes #603) 10 years ago
Kim Alvefur 8165818e26 net.http.codes: Add HTTP status code 451 Unavailable For Legal Reasons from RFC 7725 10 years ago
Kim Alvefur 96e44863cf net.http.codes: Remove used argument 10 years ago
Kim Alvefur d3a6c7549a net.http.parser: Remove unused argument [luacheck] 10 years ago
Kim Alvefur 8499f4e721 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 bb7e066da3 net.http.server: Add response method for reading response body from a file handle 10 years ago
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
Kim Alvefur 9c0b2a3e23 net.http.codes: Update from registry 11 years ago
Matthew Wild f25f49c34d net.http.server: Log event name when firing a request event 11 years ago
Kim Alvefur 1484f5bb65 net.http.server: Log names of the events fired 11 years ago
Matthew Wild a7d88ea233 net.http.parser: Fix whitespace/indentation 11 years ago
daurnimator 0643a6bde5 net.http.parser: Fix chunked encoding parsing across packet boundaries. 11 years ago
Matthew Wild 5035900778 net.http.parser: Support status code 101 and allow handling of the received data by someone else 12 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
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
Matthew Wild 0ff78f556e net.http.parser: Remove accidentally-committed debugging 13 years ago
Matthew Wild 992ed43b25 net.http.parser: Fix off-by-one error in chunked encoding parser 13 years ago
Matthew Wild 60d0189f57 net.http.parser: Fix chunked encoding response parsing, and make it more robust 13 years ago
Matthew Wild 56ef63ad8f net.http.parser: Convert status_code to a number before trying to compare it to numbers 13 years ago
Matthew Wild 31377853b7 net.http.parser: Break when no more usable data in buffer (client part of e5ec60dfb202) 13 years ago
Matthew Wild 07ca080e07 net.http.parser: Depend on util.http instead of net.http for urlencode 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
Waqas Hussain 49a6c24073 net.http.parser: Ensure full URL in status line contains a path. 13 years ago
Waqas Hussain 8e10516c29 net.http.parser: Fix traceback on invalid URL in status line. 13 years ago
Florian Zeitz 1931de0924 net.http.server: Properly handle persistent connections 13 years ago
Kim Alvefur 77651c4a6c net.http.parser: Abort if no status line is received. 13 years ago