Commit Graph

94 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Matthew Wild 9b5c6c4d9d Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Kim Alvefur 399f42a003 net.http: Import setmetatable into local scope (fixes #1125) 8 years ago
Matthew Wild bef96be8a0 net.http: Fix parameter order to http request callbacks 8 years ago
Kim Alvefur 672ab9595b net.http: Add option for disabling TLS certifictate validation 9 years ago
Kim Alvefur 6f427fed5d net.http: Validate HTTPS certificates (fixes #659) 9 years ago
Kim Alvefur eb481bfb43 net.http: Move default SSL/TLS settings into options, allowing them to be overriden in new() 9 years ago
Kim Alvefur 41ea79ea50 net.http: Expose defaults 9 years ago
Kim Alvefur 4590e4d9ee net.http: Remove duplicate 'request' entry 9 years ago
Matthew Wild 5862c92aa4 net.http: Add request.url, which is the original full URL as a string 9 years ago
Matthew Wild 85bb54060c net.http: Fire new events: pre-request, request-connection-error, request, response 9 years ago
Matthew Wild 527e6d6086 net.http: Allow creation of http client objects, with custom options 9 years ago
Kim Alvefur 3811ceb6ca net.http: Pass error all the way to callback 9 years ago
Matthew Wild 3a59dfeb6a net.http: Allow enabling/disabling error suppression, useful for tests 8 years ago
Matthew Wild 627e377370 net.http: Fix for Lua 5.2: return error from error handler (xpcall changed) 8 years ago
Kim Alvefur 146acdbd33 vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Matthew Wild 653a61753e net.http: Refactor to use new net.connect API, brings support for async DNS 8 years ago
Matthew Wild f5cb629ca2 net.http: Rename handler to conn, for consistency with all our other code 8 years ago
Matthew Wild 74fcf735d9 net.http: Remove use of 'conn' (raw socket object returned by addclient) 8 years ago
Kim Alvefur ddb503576f net.http: Strip trailing whitespace 9 years ago
Kim Alvefur 3f2bb3f817 net.http: Remove unused imports [luacheck] 9 years ago
Matthew Wild 85547f3e74 net.http: Add quotes around ids in log messages 10 years ago
Matthew Wild 2ba75409ab net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request) 10 years ago
Matthew Wild a92512707c net.http: Add request.id to every request object (can be overridden by providing ex.id) 10 years ago
Kim Alvefur 9ed000c898 net.*: Remove use of module() function 11 years ago
Matthew Wild c5d0345453 certmanager, net.http: Disable SSLv3 by default 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
daurnimator 80589aacf6 net/http: Use server.addclient 12 years ago
daurnimator 8184587aa4 net/http: Use server.addclient 12 years ago
Matthew Wild 741e58831a net.http: assert() for socket creation success so it doesn't silently fail (thanks daurnimator) 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild 871b368671 net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC 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 8432300448 net.http: When HTTP request fails due to a network or SSL error, call the callback to let it know 13 years ago
Matthew Wild 398145c109 net.http: Swap response and request parameters passed to callback (will break some modules) 13 years ago
Matthew Wild 607cae48bf net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http 13 years ago
Matthew Wild da672e131f net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) 13 years ago
Matthew Wild 09e6b19e4f net.http: Throw error when connecting to a http:// URL without LuaSec available 13 years ago
Matthew Wild c237eea830 net.http: Disable SSLv2 support for HTTPS connections 13 years ago
Matthew Wild f7e05e902a net.http: Allow passing an SSL context or options table to be used for HTTPS requests (thanks daurnimator) 13 years ago
Matthew Wild 16d3a88097 net.http: Don't call ondisconnect manually, net.server now calls it on close 14 years ago
Kim Alvefur 32fc3a5067 net.http: Use base64 from util.encodings instead of luasocket 14 years ago
Matthew Wild 7e6b8c8f26 net.http: Fix urlencode to not encode unreserved characters, so I can guiltlessly rant about people who do. 14 years ago
Matthew Wild e9a6d6dd41 net.http, httpclient_listener: Merge listener into net.http 14 years ago
Matthew Wild bf028da1af net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?) 14 years ago
Waqas Hussain 807c9de35d net.http: Remove extra space after method in request status line for POST. 15 years ago
Matthew Wild 45ef372127 net.http: Convert port to a number (for custom port in URL) 15 years ago
Matthew Wild e3d1510338 net.http: Support for k->v maps in http.formencode 15 years ago
Matthew Wild 3c84072287 net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http 15 years ago
Matthew Wild cbc11b51bb net.http: Whitespace fixes 15 years ago