blob: 2a64872e6fd1896ae9b2d2c76cc92535320f5a2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
local ltn12 = require("ltn12")
local type Pump = ltn12.Pump
local type Sink = ltn12.Sink
local type Source = ltn12.Source
local record http
request: function(string): string, integer|string, string, string
request: function(string, string): string, integer|string, string, string
record HTTPRequest
url: string
sink: Sink
method: string
headers: {string:string}
source: Source
step: Pump
proxy: string
redirect: boolean
create: function
end
request: function(HTTPRequest): string, integer|string, string, string
PORT: integer
PROXY: string
TIMEOUT: integer
USERAGENT: string
end
return http
|