From 2b6429ead0c88dc60a1c99743e2c4d92b91fe7ca Mon Sep 17 00:00:00 2001 From: V1K1NGbg Date: Thu, 22 Aug 2024 23:10:57 -0300 Subject: import type definitions for dependencies from teal-types --- types/socket/http.d.tl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 types/socket/http.d.tl (limited to 'types/socket') diff --git a/types/socket/http.d.tl b/types/socket/http.d.tl new file mode 100644 index 00000000..2a64872e --- /dev/null +++ b/types/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