Software /
code /
prosody-modules
Comparison
mod_auth_http_async/mod_auth_http_async.lua @ 1931:bd5412eb0a6d
mod_auth_http_async: Actually do the HTTP request
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 24 Oct 2015 13:19:25 +0200 |
parent | 1930:95bbf3c4aa27 |
child | 1932:3729245498ae |
comparison
equal
deleted
inserted
replaced
1930:95bbf3c4aa27 | 1931:bd5412eb0a6d |
---|---|
25 local ret; | 25 local ret; |
26 local function cb(content_, code_, request_, response_) | 26 local function cb(content_, code_, request_, response_) |
27 content, code, request, response = content_, code_, request_, response_; | 27 content, code, request, response = content_, code_, request_, response_; |
28 done(); | 28 done(); |
29 end | 29 end |
30 http.request(url, ex, cb); | |
30 wait(); | 31 wait(); |
31 return content, code, request, response; | 32 return content, code, request, response; |
32 end | 33 end |
33 | 34 |
34 local provider = {}; | 35 local provider = {}; |