From 220366da25017dd4b99f2136c1a35a5efc2d3fd8 Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Fri, 2 Aug 2024 14:47:21 +0300 Subject: new dependencies --- src/socket/http.d.tl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/socket/http.d.tl (limited to 'src/socket') 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 @@ +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 \ No newline at end of file -- cgit v1.2.3-55-g6feb