Software /
code /
prosody
Comparison
net/http.lua @ 8196:bc2bcfa63b43
net.http: Expose defaults
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Jul 2017 20:30:52 +0200 |
parent | 8195:3accfae91946 |
child | 8197:55826e29c719 |
comparison
equal
deleted
inserted
replaced
8195:3accfae91946 | 8196:bc2bcfa63b43 |
---|---|
243 | 243 |
244 return { | 244 return { |
245 request = function (u, ex, callback) | 245 request = function (u, ex, callback) |
246 return default_http:request(u, ex, callback); | 246 return default_http:request(u, ex, callback); |
247 end; | 247 end; |
248 default = default_http; | |
248 new = new; | 249 new = new; |
249 events = default_http.events; | 250 events = default_http.events; |
250 -- COMPAT | 251 -- COMPAT |
251 urlencode = util_http.urlencode; | 252 urlencode = util_http.urlencode; |
252 urldecode = util_http.urldecode; | 253 urldecode = util_http.urldecode; |