1 | import type { Client } from './client';
|
2 | import type { Envelope } from './envelope';
|
3 | export type TransportRequest = {
|
4 | body: string | Uint8Array;
|
5 | };
|
6 | export type TransportMakeRequestResponse = {
|
7 | statusCode?: number;
|
8 | headers?: {
|
9 | [key: string]: string | null;
|
10 | 'x-sentry-rate-limits': string | null;
|
11 | 'retry-after': string | null;
|
12 | };
|
13 | };
|
14 | export interface InternalBaseTransportOptions {
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | tunnel?: string;
|
21 | bufferSize?: number;
|
22 | recordDroppedEvent: Client['recordDroppedEvent'];
|
23 | }
|
24 | export interface BaseTransportOptions extends InternalBaseTransportOptions {
|
25 | url: string;
|
26 | }
|
27 | export interface Transport {
|
28 | send(request: Envelope): PromiseLike<TransportMakeRequestResponse>;
|
29 | flush(timeout?: number): PromiseLike<boolean>;
|
30 | }
|
31 | export type TransportRequestExecutor = (request: TransportRequest) => PromiseLike<TransportMakeRequestResponse>;
|
32 |
|
\ | No newline at end of file |