Kim Alvefur
|
43b814a83b
|
vairious: Add annotation when an empty environment is set [luacheck]
|
2018-02-28 20:06:26 +01:00 |
|
Matthew Wild
|
5e69368eeb
|
net.http: Refactor to use new net.connect API, brings support for async DNS
|
2018-02-26 15:27:00 +00:00 |
|
Matthew Wild
|
c26b05eaf2
|
net.http: Rename handler to conn, for consistency with all our other code
|
2018-02-23 16:21:40 +00:00 |
|
Matthew Wild
|
a761524e28
|
net.http: Remove use of 'conn' (raw socket object returned by addclient)
|
2018-02-23 16:20:45 +00:00 |
|
Kim Alvefur
|
7e28119b3d
|
net.http: Add option for disabling TLS certifictate validation
|
2017-07-07 21:04:46 +02:00 |
|
Kim Alvefur
|
e605ac0987
|
net.http: Validate HTTPS certificates (fixes #659)
|
2017-07-07 21:04:30 +02:00 |
|
Kim Alvefur
|
708ce26bc8
|
net.http: Move default SSL/TLS settings into options, allowing them to be overriden in new()
|
2017-07-07 20:31:52 +02:00 |
|
Kim Alvefur
|
450544aad0
|
net.http: Expose defaults
|
2017-07-07 20:30:52 +02:00 |
|
Kim Alvefur
|
10d48f1bad
|
net.http: Remove duplicate 'request' entry
|
2017-07-07 20:16:00 +02:00 |
|
Matthew Wild
|
3371e3eae3
|
net.http: Add request.url, which is the original full URL as a string
|
2017-04-21 16:42:25 +01:00 |
|
Matthew Wild
|
66a3d68d56
|
net.http: Fire new events: pre-request, request-connection-error, request, response
|
2017-04-21 16:42:06 +01:00 |
|
Matthew Wild
|
04d3816b69
|
net.http: Allow creation of http client objects, with custom options
|
2017-04-21 16:41:27 +01:00 |
|
Kim Alvefur
|
3e7bffe8c8
|
net.http: Pass error all the way to callback
|
2017-04-02 00:24:07 +02:00 |
|
Kim Alvefur
|
6d2a83e077
|
net.http: Strip trailing whitespace
|
2016-12-30 18:25:36 +01:00 |
|
Kim Alvefur
|
e14306d742
|
net.http: Remove unused imports [luacheck]
|
2016-12-30 18:25:23 +01:00 |
|
Matthew Wild
|
5a7fc4ca74
|
net.http: Add quotes around ids in log messages
|
2016-07-27 13:40:45 +01:00 |
|
Matthew Wild
|
22ce4d1825
|
net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request)
|
2016-07-07 23:08:47 +01:00 |
|
Matthew Wild
|
fc9bcc9b20
|
net.http: Add request.id to every request object (can be overridden by providing ex.id)
|
2016-07-07 23:07:19 +01:00 |
|
daurnimator
|
5c7f981a77
|
net/http: Use server.addclient
|
2013-12-18 19:00:24 -05:00 |
|
Kim Alvefur
|
69652ea24b
|
net.*: Remove use of module() function
|
2015-02-21 10:45:24 +01:00 |
|
Kim Alvefur
|
29326acffa
|
Merge 0.9->0.10
|
2014-10-26 20:57:06 +01:00 |
|
Matthew Wild
|
26cd63e77f
|
certmanager, net.http: Disable SSLv3 by default
|
2014-10-14 18:55:08 +01:00 |
|
Kim Alvefur
|
c80b30a71c
|
Merge 0.9->0.10
|
2014-09-02 22:33:11 +02:00 |
|
Matthew Wild
|
899b6d53ae
|
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)
|
2014-08-29 11:54:34 +01:00 |
|
Matthew Wild
|
535e8c1102
|
Merge 0.9->0.10
|
2013-12-16 23:32:11 +00:00 |
|
Matthew Wild
|
edb2882b96
|
net.http: assert() for socket creation success so it doesn't silently fail (thanks daurnimator)
|
2013-12-16 23:24:16 +00:00 |
|
Florian Zeitz
|
1d833bb807
|
Remove all trailing whitespace
|
2013-08-09 17:48:21 +02:00 |
|
Matthew Wild
|
3ad5836d2e
|
net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC
|
2013-06-26 21:40:01 +01:00 |
|
Matthew Wild
|
4602591c38
|
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured
|
2013-04-22 12:35:52 +01:00 |
|
Matthew Wild
|
6dced9f482
|
net.http: When HTTP request fails due to a network or SSL error, call the callback to let it know
|
2013-04-18 00:08:58 +01:00 |
|
Matthew Wild
|
ef9b86202e
|
net.http: Swap response and request parameters passed to callback (will break some modules)
|
2013-04-12 00:31:05 +01:00 |
|
Matthew Wild
|
218b8844b4
|
net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see http://prosody.im/doc/developers/http
|
2013-04-11 20:24:37 +01:00 |
|
Matthew Wild
|
8994b3afd1
|
net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies)
|
2013-04-11 17:32:59 +01:00 |
|
Matthew Wild
|
131f865ac2
|
net.http: Throw error when connecting to a http:// URL without LuaSec available
|
2013-04-08 16:40:27 +01:00 |
|
Matthew Wild
|
0c46e400af
|
net.http: Disable SSLv2 support for HTTPS connections
|
2013-03-20 20:31:52 +00:00 |
|
Matthew Wild
|
375e615103
|
net.http: Allow passing an SSL context or options table to be used for HTTPS requests (thanks daurnimator)
|
2013-03-20 20:31:02 +00:00 |
|
Matthew Wild
|
c6b709ed7f
|
Merge with Zash
|
2012-07-22 18:47:40 +01:00 |
|
Matthew Wild
|
ef88813111
|
net.http: Don't call ondisconnect manually, net.server now calls it on close
|
2012-07-22 16:54:58 +01:00 |
|
Kim Alvefur
|
7b894f50d3
|
net.http: Use base64 from util.encodings instead of luasocket
|
2012-07-07 23:22:15 +02:00 |
|
Matthew Wild
|
ebdfc8c271
|
net.http: Fix urlencode to not encode unreserved characters, so I can guiltlessly rant about people who do.
|
2012-05-12 02:50:38 +01:00 |
|
Matthew Wild
|
40423517a9
|
net.http, httpclient_listener: Merge listener into net.http
|
2012-01-23 17:19:16 +00:00 |
|
Matthew Wild
|
2929035ea8
|
net.http: Pass response object to callbacks (feels hacky, should this be passed *instead of* the request?)
|
2012-01-17 00:30:52 +00:00 |
|
Waqas Hussain
|
74ac411796
|
net.http: Remove extra space after method in request status line for POST.
|
2011-08-31 23:25:04 +05:00 |
|
Matthew Wild
|
a021aa7047
|
net.http: Convert port to a number (for custom port in URL)
|
2011-08-22 12:57:52 -04:00 |
|
Matthew Wild
|
cb11644d8d
|
net.http: Support for k->v maps in http.formencode
|
2011-08-20 16:51:47 -04:00 |
|
Matthew Wild
|
029b66e933
|
net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http
|
2011-08-20 15:10:04 -04:00 |
|
Matthew Wild
|
5e135c491c
|
net.http: Whitespace fixes
|
2011-08-20 15:08:54 -04:00 |
|
Matthew Wild
|
0b8455a432
|
net.http: Small fix to prevent traceback when connection fails before sending the request
|
2011-08-20 15:08:21 -04:00 |
|
Matthew Wild
|
0849d44380
|
net.http: Add formdecode to decode an urlencoded form
|
2011-08-10 17:49:10 -04:00 |
|
Waqas Hussain
|
8e491a46d7
|
net.http: Removed old HTTP parser, and updated to use util.httpstream.
|
2010-11-06 03:46:00 +05:00 |
|