芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@sentry/node/dist/transports/base.d.ts
///
import { API } from '@sentry/core'; import { Event, Response, Transport, TransportOptions } from '@sentry/types'; import { PromiseBuffer } from '@sentry/utils'; import * as http from 'http'; import * as https from 'https'; import * as url from 'url'; /** * Internal used interface for typescript. * @hidden */ export interface HTTPModule { /** * Request wrapper * @param options These are {@see TransportOptions} * @param callback Callback when request is finished */ request(options: http.RequestOptions | https.RequestOptions | string | url.URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; } /** Base Transport class implementation */ export declare abstract class BaseTransport implements Transport { options: TransportOptions; /** The Agent used for corresponding transport */ module?: HTTPModule; /** The Agent used for corresponding transport */ client?: http.Agent | https.Agent; /** API object */ protected _api: API; /** A simple buffer holding all requests. */ protected readonly _buffer: PromiseBuffer
; /** Locks transport after receiving 429 response */ private _disabledUntil; /** Create instance and set this.dsn */ constructor(options: TransportOptions); /** * @inheritDoc */ sendEvent(_: Event): PromiseLike
; /** * @inheritDoc */ close(timeout?: number): PromiseLike
; /** Returns a build request option object used by request */ protected _getRequestOptions(uri: url.URL): http.RequestOptions | https.RequestOptions; /** JSDoc */ protected _sendWithModule(httpModule: HTTPModule, event: Event): Promise
; } //# sourceMappingURL=base.d.ts.map