Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.http: Pass server name along for SNI (fixes #1408) | Kim Alvefur | 2019-09-01 | 1 | -1/+1 |
| | | | | net.resolver.basic passes this 'extra' field along to server.addclient | ||||
* | net.*: Remove tostring call from logging | Kim Alvefur | 2019-07-30 | 1 | -2/+2 |
| | | | | Taken care of by loggingmanager now | ||||
* | net.http: Manually merge settings (fixes #1231) | Kim Alvefur | 2018-11-09 | 1 | -2/+6 |
| | | | | Metatable table indexing is done raw, so metatables can't be chained | ||||
* | Many things: switch from hacky multi-arg xpcall implementations to a ↵ | Matthew Wild | 2018-10-26 | 1 | -3/+4 |
| | | | | standard util.xpcall | ||||
* | Merge 0.10->trunk | Kim Alvefur | 2018-04-06 | 1 | -0/+1 |
|\ | |||||
| * | net.http: Import setmetatable into local scope (fixes #1125) | Kim Alvefur | 2018-04-06 | 1 | -0/+1 |
| | | |||||
* | | Merge 0.10 -> trunk | Matthew Wild | 2018-04-04 | 1 | -1/+1 |
|\| | |||||
| * | net.http: Fix parameter order to http request callbacks | Matthew Wild | 2018-04-04 | 1 | -1/+1 |
| | | | | | | | | | | | | Commit e3b9dc9dd940 changed the parameter order in 2013, but did not update the names of the parameters in the callback function. Due to this inconsistency, 12df41a5a4b1 accidentally reversed the order when fixing the variable names without fixing where they are used. Additionally the documentation was incorrect (since 2013), and this has also now been fixed. | ||||
* | | net.http: Allow enabling/disabling error suppression, useful for tests | Matthew Wild | 2018-03-24 | 1 | -2/+7 |
| | | |||||
* | | net.http: Fix for Lua 5.2: return error from error handler (xpcall changed) | Matthew Wild | 2018-03-24 | 1 | -1/+1 |
| | | |||||
* | | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | | |||||
* | | net.http: Refactor to use new net.connect API, brings support for async DNS | Matthew Wild | 2018-02-26 | 1 | -70/+81 |
| | | |||||
* | | net.http: Rename handler to conn, for consistency with all our other code | Matthew Wild | 2018-02-23 | 1 | -3/+3 |
| | | |||||
* | | net.http: Remove use of 'conn' (raw socket object returned by addclient) | Matthew Wild | 2018-02-23 | 1 | -9/+10 |
|/ | |||||
* | net.http: Add option for disabling TLS certifictate validation | Kim Alvefur | 2017-07-07 | 1 | -1/+2 |
| | |||||
* | net.http: Validate HTTPS certificates (fixes #659) | Kim Alvefur | 2017-07-07 | 1 | -0/+21 |
| | |||||
* | net.http: Move default SSL/TLS settings into options, allowing them to be ↵ | Kim Alvefur | 2017-07-07 | 1 | -2/+4 |
| | | | | overriden in new() | ||||
* | net.http: Expose defaults | Kim Alvefur | 2017-07-07 | 1 | -0/+1 |
| | |||||
* | net.http: Remove duplicate 'request' entry | Kim Alvefur | 2017-07-07 | 1 | -1/+0 |
| | |||||
* | net.http: Add request.url, which is the original full URL as a string | Matthew Wild | 2017-04-21 | 1 | -0/+1 |
| | |||||
* | net.http: Fire new events: pre-request, request-connection-error, request, ↵ | Matthew Wild | 2017-04-21 | 1 | -1/+19 |
| | | | | response | ||||
* | net.http: Allow creation of http client objects, with custom options | Matthew Wild | 2017-04-21 | 1 | -3/+22 |
| | |||||
* | net.http: Pass error all the way to callback | Kim Alvefur | 2017-04-02 | 1 | -3/+3 |
| | |||||
* | net.http: Strip trailing whitespace | Kim Alvefur | 2016-12-30 | 1 | -1/+1 |
| | |||||
* | net.http: Remove unused imports [luacheck] | Kim Alvefur | 2016-12-30 | 1 | -3/+3 |
| | |||||
* | net.http: Add quotes around ids in log messages | Matthew Wild | 2016-07-27 | 1 | -3/+3 |
| | |||||
* | net.http: Add log messages for requests, including their id (so "calling ↵ | Matthew Wild | 2016-07-07 | 1 | -1/+13 |
| | | | | callback" and tracebacks can be traced back to their initial request) | ||||
* | net.http: Add request.id to every request object (can be overridden by ↵ | Matthew Wild | 2016-07-07 | 1 | -0/+4 |
| | | | | providing ex.id) | ||||
* | net/http: Use server.addclient | daurnimator | 2013-12-18 | 1 | -11/+6 |
| | |||||
* | net.*: Remove use of module() function | Kim Alvefur | 2015-02-21 | 1 | -16/+18 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2014-10-26 | 1 | -1/+1 |
|\ | |||||
| * | certmanager, net.http: Disable SSLv3 by default0.9.6 | Matthew Wild | 2014-10-14 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.9->0.10 | Kim Alvefur | 2014-09-02 | 1 | -0/+4 |
|\| | |||||
| * | net.http, net.http.server, mod_c2s, mod_s2s, mod_component, ↵ | Matthew Wild | 2014-08-29 | 1 | -0/+4 |
| | | | | | | | | mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) | ||||
* | | Merge 0.9->0.10 | Matthew Wild | 2013-12-16 | 1 | -1/+2 |
|\| | |||||
| * | net.http: assert() for socket creation success so it doesn't silently fail ↵ | Matthew Wild | 2013-12-16 | 1 | -1/+2 |
| | | | | | | | | (thanks daurnimator) | ||||
* | | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -15/+15 |
|/ | |||||
* | net.http: Include port number (when non-standard) in the Host header of ↵ | Matthew Wild | 2013-06-26 | 1 | -4/+13 |
| | | | | outgoing requests, as per the HTTP RFC | ||||
* | mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit ↵ | Matthew Wild | 2013-04-22 | 1 | -4/+4 |
| | | | | traceback function), to make it clearer where an error occured | ||||
* | net.http: When HTTP request fails due to a network or SSL error, call the ↵ | Matthew Wild | 2013-04-18 | 1 | -7/+12 |
| | | | | callback to let it know | ||||
* | net.http: Swap response and request parameters passed to callback (will ↵ | Matthew Wild | 2013-04-12 | 1 | -2/+1 |
| | | | | break some modules) | ||||
* | net.http: Switch from util.httpstream to net.http.parser, introduces small ↵ | Matthew Wild | 2013-04-11 | 1 | -1/+1 |
| | | | | but backwards-incompatible API changes - see http://prosody.im/doc/developers/http | ||||
* | net.http, util.http: Move definitions of urlencode/decode and ↵ | Matthew Wild | 2013-04-11 | 1 | -41/+7 |
| | | | | formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) | ||||
* | net.http: Throw error when connecting to a http:// URL without LuaSec available | Matthew Wild | 2013-04-08 | 1 | -0/+5 |
| | |||||
* | net.http: Disable SSLv2 support for HTTPS connections | Matthew Wild | 2013-03-20 | 1 | -1/+1 |
| | |||||
* | net.http: Allow passing an SSL context or options table to be used for HTTPS ↵ | Matthew Wild | 2013-03-20 | 1 | -1/+6 |
| | | | | requests (thanks daurnimator) | ||||
* | Merge with Zash | Matthew Wild | 2012-07-22 | 1 | -2/+2 |
|\ | |||||
| * | net.http: Use base64 from util.encodings instead of luasocket | Kim Alvefur | 2012-07-07 | 1 | -2/+2 |
| | | |||||
* | | net.http: Don't call ondisconnect manually, net.server now calls it on close | Matthew Wild | 2012-07-22 | 1 | -1/+0 |
|/ | |||||
* | net.http: Fix urlencode to not encode unreserved characters, so I can ↵ | Matthew Wild | 2012-05-12 | 1 | -1/+1 |
| | | | | guiltlessly rant about people who do. |