Log

net/http.lua @ 9729:4f6413ec08a8 0.11

description author age
net.http: Manually merge settings (fixes #1231) 0.11 Kim Alvefur Fri, 09 Nov 2018 15:59:32 +0100
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall Matthew Wild Fri, 26 Oct 2018 19:32:00 +0100
Merge 0.10->trunk Kim Alvefur Fri, 06 Apr 2018 01:43:44 +0200
net.http: Import setmetatable into local scope (fixes #1125) Kim Alvefur Fri, 06 Apr 2018 01:42:35 +0200
Merge 0.10 -> trunk Matthew Wild Wed, 04 Apr 2018 18:42:05 +0100
net.http: Fix parameter order to http request callbacks Matthew Wild Wed, 04 Apr 2018 18:27:44 +0100
net.http: Allow enabling/disabling error suppression, useful for tests Matthew Wild Sat, 24 Mar 2018 11:29:33 +0000
net.http: Fix for Lua 5.2: return error from error handler (xpcall changed) Matthew Wild Sat, 24 Mar 2018 11:29:04 +0000
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur Wed, 28 Feb 2018 20:06:26 +0100
net.http: Refactor to use new net.connect API, brings support for async DNS Matthew Wild Mon, 26 Feb 2018 15:27:00 +0000
net.http: Rename handler to conn, for consistency with all our other code Matthew Wild Fri, 23 Feb 2018 16:21:40 +0000
net.http: Remove use of 'conn' (raw socket object returned by addclient) Matthew Wild Fri, 23 Feb 2018 16:20:45 +0000
Merge 0.10->trunk Kim Alvefur Mon, 28 Aug 2017 21:05:12 +0200
net.http: Add option for disabling TLS certifictate validation Kim Alvefur Fri, 07 Jul 2017 21:04:46 +0200
net.http: Validate HTTPS certificates (fixes #659) Kim Alvefur Fri, 07 Jul 2017 21:04:30 +0200
net.http: Move default SSL/TLS settings into options, allowing them to be overriden in new() Kim Alvefur Fri, 07 Jul 2017 20:31:52 +0200
net.http: Expose defaults Kim Alvefur Fri, 07 Jul 2017 20:30:52 +0200
net.http: Remove duplicate 'request' entry Kim Alvefur Fri, 07 Jul 2017 20:16:00 +0200
Merge 0.10->trunk Kim Alvefur Mon, 24 Apr 2017 14:19:49 +0200
net.http: Add request.url, which is the original full URL as a string Matthew Wild Fri, 21 Apr 2017 16:42:25 +0100
net.http: Fire new events: pre-request, request-connection-error, request, response Matthew Wild Fri, 21 Apr 2017 16:42:06 +0100
net.http: Allow creation of http client objects, with custom options Matthew Wild Fri, 21 Apr 2017 16:41:27 +0100
Merge 0.10->trunk Kim Alvefur Sun, 02 Apr 2017 00:24:37 +0200
net.http: Pass error all the way to callback Kim Alvefur Sun, 02 Apr 2017 00:24:07 +0200
Merge 0.10->trunk Kim Alvefur Sun, 01 Jan 2017 19:35:06 +0100
net.http: Strip trailing whitespace Kim Alvefur Fri, 30 Dec 2016 18:25:36 +0100
net.http: Remove unused imports [luacheck] Kim Alvefur Fri, 30 Dec 2016 18:25:23 +0100
Merge 0.10 -> trunk Matthew Wild Wed, 27 Jul 2016 14:08:32 +0100
net.http: Add quotes around ids in log messages Matthew Wild Wed, 27 Jul 2016 13:40:45 +0100
Merge 0.10->trunk Matthew Wild Thu, 07 Jul 2016 23:12:25 +0100
net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request) Matthew Wild Thu, 07 Jul 2016 23:08:47 +0100
net.http: Add request.id to every request object (can be overridden by providing ex.id) Matthew Wild Thu, 07 Jul 2016 23:07:19 +0100
Merge 0.10->trunk Matthew Wild Fri, 04 Sep 2015 11:11:40 +0100
net/http: Use server.addclient daurnimator Wed, 18 Dec 2013 19:00:24 -0500
Merge 0.10->trunk Kim Alvefur Thu, 20 Aug 2015 13:05:22 +0200
net.*: Remove use of module() function Kim Alvefur Sat, 21 Feb 2015 10:45:24 +0100
Merge 0.10->trunk Kim Alvefur Sun, 26 Oct 2014 20:58:02 +0100
Merge 0.9->0.10 Kim Alvefur Sun, 26 Oct 2014 20:57:06 +0100
certmanager, net.http: Disable SSLv3 by default 0.9.6 Matthew Wild Tue, 14 Oct 2014 18:55:08 +0100
Merge 0.10->trunk Kim Alvefur Tue, 02 Sep 2014 22:34:32 +0200
Merge 0.9->0.10 Kim Alvefur Tue, 02 Sep 2014 22:33:11 +0200
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) Matthew Wild Fri, 29 Aug 2014 11:54:34 +0100
net/http: Use server.addclient daurnimator Wed, 18 Dec 2013 19:00:24 -0500
Merge 0.9->0.10 Matthew Wild Mon, 16 Dec 2013 23:32:11 +0000
net.http: assert() for socket creation success so it doesn't silently fail (thanks daurnimator) Matthew Wild Mon, 16 Dec 2013 23:24:16 +0000
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC Matthew Wild Wed, 26 Jun 2013 21:40:01 +0100
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured Matthew Wild Mon, 22 Apr 2013 12:35:52 +0100
net.http: When HTTP request fails due to a network or SSL error, call the callback to let it know Matthew Wild Thu, 18 Apr 2013 00:08:58 +0100
net.http: Swap response and request parameters passed to callback (will break some modules) Matthew Wild Fri, 12 Apr 2013 00:31:05 +0100
net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http Matthew Wild Thu, 11 Apr 2013 20:24:37 +0100
net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) Matthew Wild Thu, 11 Apr 2013 17:32:59 +0100
net.http: Throw error when connecting to a http:// URL without LuaSec available Matthew Wild Mon, 08 Apr 2013 16:40:27 +0100
net.http: Disable SSLv2 support for HTTPS connections Matthew Wild Wed, 20 Mar 2013 20:31:52 +0000
net.http: Allow passing an SSL context or options table to be used for HTTPS requests (thanks daurnimator) Matthew Wild Wed, 20 Mar 2013 20:31:02 +0000
Merge with Zash Matthew Wild Sun, 22 Jul 2012 18:47:40 +0100
net.http: Use base64 from util.encodings instead of luasocket Kim Alvefur Sat, 07 Jul 2012 23:22:15 +0200
net.http: Don't call ondisconnect manually, net.server now calls it on close Matthew Wild Sun, 22 Jul 2012 16:54:58 +0100
net.http: Fix urlencode to not encode unreserved characters, so I can guiltlessly rant about people who do. Matthew Wild Sat, 12 May 2012 02:50:38 +0100
net.http, httpclient_listener: Merge listener into net.http Matthew Wild Mon, 23 Jan 2012 17:19:16 +0000
net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?) Matthew Wild Tue, 17 Jan 2012 00:30:52 +0000
net.http: Remove extra space after method in request status line for POST. Waqas Hussain Wed, 31 Aug 2011 23:25:04 +0500
net.http: Convert port to a number (for custom port in URL) Matthew Wild Mon, 22 Aug 2011 12:57:52 -0400
net.http: Support for k->v maps in http.formencode Matthew Wild Sat, 20 Aug 2011 16:51:47 -0400
net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http Matthew Wild Sat, 20 Aug 2011 15:10:04 -0400
net.http: Whitespace fixes Matthew Wild Sat, 20 Aug 2011 15:08:54 -0400
net.http: Small fix to prevent traceback when connection fails before sending the request Matthew Wild Sat, 20 Aug 2011 15:08:21 -0400
net.http: Add formdecode to decode an urlencoded form Matthew Wild Wed, 10 Aug 2011 17:49:10 -0400
net.http: Removed old HTTP parser, and updated to use util.httpstream. Waqas Hussain Sat, 06 Nov 2010 03:46:00 +0500
Monster whitespace commit (beware the whitespace monster). Waqas Hussain Sat, 16 Oct 2010 23:00:42 +0500
net.http: Add http.formencode() for www-form-urlencoded from an array of fields (thanks dersd) Matthew Wild Fri, 27 Aug 2010 18:33:45 +0100
Merge 0.6->0.7 Matthew Wild Mon, 22 Mar 2010 17:24:55 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak Matthew Wild Wed, 03 Mar 2010 20:52:30 +0000
net.http: Close connection when invalid status line is received from the server Matthew Wild Fri, 19 Feb 2010 03:21:50 +0000
net.http: Don't re-destroy a request when the connection is closed Matthew Wild Fri, 19 Feb 2010 03:21:20 +0000
net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) Matthew Wild Fri, 19 Feb 2010 02:58:34 +0000
net.http: Don't expect the body on redirects Matthew Wild Thu, 10 Dec 2009 22:13:04 +0000
net.http: Update print()s to log()s - don't ask how this came to be, I have no idea :) Matthew Wild Fri, 19 Feb 2010 03:27:18 +0000
net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect Matthew Wild Fri, 19 Feb 2010 03:22:42 +0000
net.http: Close connection when invalid status line is received from the server Matthew Wild Fri, 19 Feb 2010 03:21:50 +0000
net.http: Don't re-destroy a request when the connection is closed Matthew Wild Fri, 19 Feb 2010 03:21:20 +0000
net.http: Port commit 2f235c57d713 to net.http to fix headers in responses (thanks dersd) Matthew Wild Fri, 19 Feb 2010 02:58:34 +0000
net.http: Don't expect the body on redirects Matthew Wild Thu, 10 Dec 2009 22:13:04 +0000
net.httpserver, net.http: Update for new net.server API (untested) Matthew Wild Sun, 22 Nov 2009 04:44:26 +0000
Add copyright header to those files missing one Matthew Wild Fri, 10 Jul 2009 03:08:38 +0100
net.http: (Re-)add url[en|de]code functions Matthew Wild Fri, 12 Jun 2009 11:21:11 +0100
Merge with 0.4 Matthew Wild Mon, 04 May 2009 19:57:05 +0100
net.http, net.httpserver: Remove urlcodes table... it really isn't needed (thanks Jan Harkes) Matthew Wild Mon, 04 May 2009 19:53:31 +0100
net.http: Fix potential nil access Matthew Wild Wed, 22 Apr 2009 20:29:35 +0100
Fixed: net/http.lua: HTTP request callback wasn't being called on some errors Waqas Hussain Mon, 30 Mar 2009 01:55:56 +0500
net.http: Don't throw error on invalid URLs. Fixes #56. Matthew Wild Sat, 21 Mar 2009 23:48:09 +0000
Port to new server.lua, quite some changes, but I believe everything to be working Matthew Wild Sat, 17 Jan 2009 04:45:08 +0000
net.http: custom_headers -> headers Matthew Wild Fri, 16 Jan 2009 23:34:45 +0000
net.http: Don't log content from server Matthew Wild Thu, 15 Jan 2009 04:10:06 +0000
net.http: Fix to send query part of URL to server Matthew Wild Thu, 15 Jan 2009 04:08:06 +0000
net.http: Fix for callbacks being triggered multiple times for the same request Matthew Wild Wed, 14 Jan 2009 03:06:26 +0000
Protected call for HTTP request callbacks, to catch errors Matthew Wild Thu, 08 Jan 2009 02:04:06 +0000
Fix to prevent calling HTTP request callback twice with the same data Matthew Wild Thu, 08 Jan 2009 02:02:35 +0000
HTTP requests now have status code as a number instead of a string. Switched parameters on both http.request() and the callback to better match LuaSocket's http module Matthew Wild Thu, 25 Dec 2008 03:05:06 +0000
Fix nil status code for http request callbacks Matthew Wild Mon, 22 Dec 2008 22:01:49 +0000
Fixed URL encoding to generate %0x instead of %x Waqas Hussain Tue, 16 Dec 2008 03:46:17 +0500
Oops, don't call server.loop() because we'll be running inside the server Matthew Wild Fri, 12 Dec 2008 04:38:22 +0000
Pass HTTP request object to callback Matthew Wild Fri, 12 Dec 2008 04:30:35 +0000
HTTP request callbacks now: handler(code, content) (where code may be 0, and content an error message) Matthew Wild Fri, 12 Dec 2008 04:16:35 +0000
Non-blocking HTTP requests (adding net.http) Matthew Wild Fri, 12 Dec 2008 04:06:15 +0000