Software /
code /
prosody
Comparison
net/http/server.lua @ 12974:ba409c67353b
net: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:12 +0100 |
parent | 12886:686c3cdd4775 |
child | 13100:18ffe7833446 |
comparison
equal
deleted
inserted
replaced
12973:cc215923297f | 12974:ba409c67353b |
---|---|
1 | 1 |
2 local t_insert, t_concat = table.insert, table.concat; | 2 local t_insert, t_concat = table.insert, table.concat; |
3 local parser_new = require "net.http.parser".new; | 3 local parser_new = require "prosody.net.http.parser".new; |
4 local events = require "util.events".new(); | 4 local events = require "prosody.util.events".new(); |
5 local addserver = require "net.server".addserver; | 5 local addserver = require "prosody.net.server".addserver; |
6 local log = require "util.logger".init("http.server"); | 6 local log = require "prosody.util.logger".init("http.server"); |
7 local os_date = os.date; | 7 local os_date = os.date; |
8 local pairs = pairs; | 8 local pairs = pairs; |
9 local s_upper = string.upper; | 9 local s_upper = string.upper; |
10 local setmetatable = setmetatable; | 10 local setmetatable = setmetatable; |
11 local cache = require "util.cache"; | 11 local cache = require "prosody.util.cache"; |
12 local codes = require "net.http.codes"; | 12 local codes = require "prosody.net.http.codes"; |
13 local promise = require "util.promise"; | 13 local promise = require "prosody.util.promise"; |
14 local errors = require "util.error"; | 14 local errors = require "prosody.util.error"; |
15 local blocksize = 2^16; | 15 local blocksize = 2^16; |
16 local async = require "util.async"; | 16 local async = require "prosody.util.async"; |
17 | 17 |
18 local _M = {}; | 18 local _M = {}; |
19 | 19 |
20 local sessions = {}; | 20 local sessions = {}; |
21 local incomplete = {}; | 21 local incomplete = {}; |