aboutsummaryrefslogtreecommitdiff
path: root/src/ssl/https.d.tl
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-02 20:24:01 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:51:31 +0300
commite82c2fd083813c18a893bb19cbc013b6df44cafb (patch)
treed584dfd06a4a57d15fedc8973c63d0858c5c6db8 /src/ssl/https.d.tl
parent5b189eea169bd69faa6705f6df68b8b132d2b0dc (diff)
downloadluarocks-e82c2fd083813c18a893bb19cbc013b6df44cafb.tar.gz
luarocks-e82c2fd083813c18a893bb19cbc013b6df44cafb.tar.bz2
luarocks-e82c2fd083813c18a893bb19cbc013b6df44cafb.zip
move .d.tl to types folder
Diffstat (limited to 'src/ssl/https.d.tl')
-rw-r--r--src/ssl/https.d.tl50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/ssl/https.d.tl b/src/ssl/https.d.tl
deleted file mode 100644
index 94c38df6..00000000
--- a/src/ssl/https.d.tl
+++ /dev/null
@@ -1,50 +0,0 @@
1local ssl = require("ssl")
2local SSLCertificate = ssl.SSLCertificate
3local SSLConnection = ssl.SSLConnection
4
5local ltn12 = require("ltn12")
6local Pump = ltn12.Pump
7local Sink = ltn12.Sink
8local Source = ltn12.Source
9
10local record https
11 record HTTPSRequest
12 -- HTTP options
13 url: string|{string}
14 sink: Sink<string>
15 method: string
16 headers: {string:string}
17 source: Source<string>
18 step: Pump<string>
19 -- proxy: string -- not supported
20 -- redirect: boolean -- not supported
21 -- create: function -- https implements its own
22
23 -- SSL options
24 mode: string
25 protocol: string
26 key: string
27 password: string|function
28 certificate: string
29 certificates: {SSLCertificate}
30 cafile: string
31 capath: string
32 verify: string|{string}
33 options: string|{string}
34 ciphers: string
35 ciphersuites: string
36 depth: number
37 dhparam: function
38 curve: string
39 curves_list: string
40 verifyext: string|{string}
41 alpn: string|function|{string}
42 dane: boolean
43 end
44 request: function(string): string, number, {string:string}, string
45 request: function(string, string): string, number, {string:string}, string
46 request: function(HTTPSRequest): string, number, {string:string}, string
47 tcp: function(): function(): SSLConnection
48end
49
50return https \ No newline at end of file