node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
25 lines (24 loc) • 579 B
text/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.
*/
// https://github.com/curl/curl/blob/e1be8254534898/include/curl/curl.h#L452
/**
* When the option `DEBUGFUNCTION` is set,
* the first argument to the callback will be one of these.
*
* `CURLINFO_SSL_DATA_IN` becomes `CurlInfoDebug.SslDataOut`
*
* @public
*/
export enum CurlInfoDebug {
Text,
HeaderIn,
HeaderOut,
DataIn,
DataOut,
SslDataIn,
SslDataOut,
}