awesomewm.d.tl/types/socket/http.d.tl

29 lines
675 B
Plaintext
Raw Normal View History

2022-09-29 19:33:23 +02:00
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