aboutsummaryrefslogtreecommitdiff
path: root/src/socket/http.d.tl
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-02 14:47:21 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:51:31 +0300
commit220366da25017dd4b99f2136c1a35a5efc2d3fd8 (patch)
treec4b19e6d40bb7e928e9c64fab50161691ebfdafe /src/socket/http.d.tl
parentafc79ce5bdec2e242ab2d19cdfe236958c7e2275 (diff)
downloadluarocks-220366da25017dd4b99f2136c1a35a5efc2d3fd8.tar.gz
luarocks-220366da25017dd4b99f2136c1a35a5efc2d3fd8.tar.bz2
luarocks-220366da25017dd4b99f2136c1a35a5efc2d3fd8.zip
new dependencies
Diffstat (limited to 'src/socket/http.d.tl')
-rw-r--r--src/socket/http.d.tl28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/socket/http.d.tl b/src/socket/http.d.tl
new file mode 100644
index 00000000..2a64872e
--- /dev/null
+++ b/src/socket/http.d.tl
@@ -0,0 +1,28 @@
1local ltn12 = require("ltn12")
2local type Pump = ltn12.Pump
3local type Sink = ltn12.Sink
4local type Source = ltn12.Source
5
6local record http
7 request: function(string): string, integer|string, string, string
8 request: function(string, string): string, integer|string, string, string
9 record HTTPRequest
10 url: string
11 sink: Sink
12 method: string
13 headers: {string:string}
14 source: Source
15 step: Pump
16 proxy: string
17 redirect: boolean
18 create: function
19 end
20 request: function(HTTPRequest): string, integer|string, string, string
21
22 PORT: integer
23 PROXY: string
24 TIMEOUT: integer
25 USERAGENT: string
26end
27
28return http \ No newline at end of file