UNPKG

805 BTypeScriptView Raw
1/// <reference types="node" />
2import { BaseTransportOptions, Transport } from '@sentry/types';
3import { HTTPModule } from './http-module';
4export interface NodeTransportOptions extends BaseTransportOptions {
5 /** Define custom headers */
6 headers?: Record<string, string>;
7 /** Set a proxy that should be used for outbound requests. */
8 proxy?: string;
9 /** HTTPS proxy CA certificates */
10 caCerts?: string | Buffer | Array<string | Buffer>;
11 /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */
12 httpModule?: HTTPModule;
13}
14/**
15 * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.
16 */
17export declare function makeNodeTransport(options: NodeTransportOptions): Transport;
18//# sourceMappingURL=http.d.ts.map
\No newline at end of file