node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
70 lines • 3.15 kB
TypeScript
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @public
*/
export interface MultiOption {
/**
* deprecated
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.html](https://curl.haxx.se/libcurl/c/CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.html)
*/
readonly CHUNK_LENGTH_PENALTY_SIZE: 'CHUNK_LENGTH_PENALTY_SIZE';
/**
* deprecated
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.html](https://curl.haxx.se/libcurl/c/CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.html)
*/
readonly CONTENT_LENGTH_PENALTY_SIZE: 'CONTENT_LENGTH_PENALTY_SIZE';
/**
* Max concurrent streams for http2.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html)
*/
readonly MAX_CONCURRENT_STREAMS: 'MAX_CONCURRENT_STREAMS';
/**
* Max number of connections to a single host.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html)
*/
readonly MAX_HOST_CONNECTIONS: 'MAX_HOST_CONNECTIONS';
/**
* deprecated.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_PIPELINE_LENGTH.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_PIPELINE_LENGTH.html)
*/
readonly MAX_PIPELINE_LENGTH: 'MAX_PIPELINE_LENGTH';
/**
* Max simultaneously open connections.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html)
*/
readonly MAX_TOTAL_CONNECTIONS: 'MAX_TOTAL_CONNECTIONS';
/**
* Size of connection cache.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAXCONNECTS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAXCONNECTS.html)
*/
readonly MAXCONNECTS: 'MAXCONNECTS';
/**
* Signal that the network has changed.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_NETWORK_CHANGED.html](https://curl.haxx.se/libcurl/c/CURLMOPT_NETWORK_CHANGED.html)
*/
readonly NETWORK_CHANGED: 'NETWORK_CHANGED';
/**
* Callback that approves or denies server pushes.
*
* Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html)
*/
readonly PUSHFUNCTION: 'PUSHFUNCTION';
}
/**
* @public
*/
export type MultiOptionName = 'CHUNK_LENGTH_PENALTY_SIZE' | 'CONTENT_LENGTH_PENALTY_SIZE' | 'MAX_CONCURRENT_STREAMS' | 'MAX_HOST_CONNECTIONS' | 'MAX_PIPELINE_LENGTH' | 'MAX_TOTAL_CONNECTIONS' | 'MAXCONNECTS' | 'NETWORK_CHANGED' | 'PUSHFUNCTION';
//# sourceMappingURL=MultiOption.d.ts.map