|
4 | 4 | * This source code is licensed under the MIT license found in the
|
5 | 5 | * LICENSE file in the root directory of this source tree.
|
6 | 6 | */
|
| 7 | + |
| 8 | +import { CurlVersion } from '../enum/CurlVersion' |
| 9 | + |
| 10 | +/** |
| 11 | + * This is the data returned on {@link Curl.getVersionInfo| `Curl.getVersionInfo`}. |
| 12 | + * |
| 13 | + * It's basically the output of [`curl_version_info()`](https://curl.haxx.se/libcurl/c/curl_version_info.html) |
| 14 | + */ |
7 | 15 | export declare interface CurlVersionInfoNativeBindingObject {
|
| 16 | + /** |
| 17 | + * List of protocols supported. Example: |
| 18 | + * ```json |
| 19 | + * [ |
| 20 | + * 'dict', 'file', 'ftp', |
| 21 | + * 'ftps', 'gopher', 'http', |
| 22 | + * 'https', 'imap', 'imaps', |
| 23 | + * 'ldap', 'ldaps', 'pop3', |
| 24 | + * 'pop3s', 'rtsp', 'scp', |
| 25 | + * 'sftp', 'smb', 'smbs', |
| 26 | + * 'smtp', 'smtps', 'telnet', |
| 27 | + * 'tftp' |
| 28 | + * ] |
| 29 | + * ``` |
| 30 | + */ |
8 | 31 | protocols: string[]
|
| 32 | + /** |
| 33 | + * List of features supported. Example: |
| 34 | + * ```json |
| 35 | + * [ |
| 36 | + * 'AsynchDNS', 'IDN', |
| 37 | + * 'IPv6', 'Largefile', |
| 38 | + * 'SSPI', 'Kerberos', |
| 39 | + * 'SPNEGO', 'NTLM', |
| 40 | + * 'SSL', 'libz', |
| 41 | + * 'HTTP2', 'HTTPS-proxy' |
| 42 | + * ] |
| 43 | + * ``` |
| 44 | + */ |
9 | 45 | features: string[]
|
10 |
| - rawFeatures: number |
| 46 | + /** |
| 47 | + * Raw feature flags |
| 48 | + */ |
| 49 | + rawFeatures: CurlVersion |
| 50 | + /** |
| 51 | + * Libcurl version. Example: |
| 52 | + * ``` |
| 53 | + * 7.69.1-DEV |
| 54 | + * ``` |
| 55 | + */ |
11 | 56 | version: string
|
| 57 | + /** |
| 58 | + * Integer representation of libcurl version, created like this: |
| 59 | + * ``` |
| 60 | + * <8 bits major number> | <8 bits minor number> | <8 bits patch number>. |
| 61 | + * ``` |
| 62 | + * Version `7.69.1` is therefore returned as `0x074501`. |
| 63 | + */ |
12 | 64 | versionNumber: number
|
| 65 | + /** |
| 66 | + * SSL library human readable version string |
| 67 | + */ |
13 | 68 | sslVersion: string
|
14 |
| - sslVersionNum: number |
| 69 | + /** |
| 70 | + * This is not used - Will always be 0 |
| 71 | + */ |
| 72 | + sslVersionNum: 0 |
| 73 | + /** |
| 74 | + * libz human readable version string |
| 75 | + */ |
15 | 76 | libzVersion: string
|
| 77 | + /** |
| 78 | + * cares human readable version string |
| 79 | + * Will be null if libcurl was not built with cares |
| 80 | + */ |
16 | 81 | aresVersion: string | null
|
| 82 | + /** |
| 83 | + * cares version number |
| 84 | + * Will be null if libcurl was not built with cares |
| 85 | + */ |
17 | 86 | aresVersionNumber: number
|
| 87 | + /** |
| 88 | + * libidn human readable version string |
| 89 | + * Will be null if libcurl was not built with libidn |
| 90 | + */ |
18 | 91 | libidnVersion: string | null
|
| 92 | + /** |
| 93 | + * iconv version number |
| 94 | + * Will be 0 if libcurl was not built with iconv |
| 95 | + */ |
19 | 96 | iconvVersionNumber: number
|
| 97 | + /** |
| 98 | + * libssh human readable version string |
| 99 | + * Will be null if libcurl was not built with libssh |
| 100 | + */ |
20 | 101 | libsshVersion: string | null
|
| 102 | + /** |
| 103 | + * brotli version number |
| 104 | + * Will be 0 if libcurl was not built with brotli |
| 105 | + */ |
21 | 106 | brotliVersionNumber: number
|
| 107 | + /** |
| 108 | + * brotli human readable version string |
| 109 | + * Will be null if libcurl was not built with brotli |
| 110 | + */ |
22 | 111 | brotliVersion: string | null
|
23 | 112 | }
|
0 commit comments