Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
import type { WebFetchHeaders } from './webfetchapi';
|
|
/**
|
|
* Request data included in an event as sent to Sentry.
|
|
*/
|
|
export interface RequestEventData {
|
|
url?: string;
|
|
method?: string;
|
|
data?: unknown;
|
|
query_string?: QueryParams;
|
|
cookies?: Record<string, string>;
|
|
env?: Record<string, string>;
|
|
headers?: {
|
|
[key: string]: string;
|
|
};
|
|
}
|
|
export type QueryParams = string | {
|
|
[key: string]: string;
|
|
} | Array<[string, string]>;
|
|
/**
|
|
* Request data that is considered safe for `span.data` on `http.client` spans
|
|
* and for `http` breadcrumbs
|
|
* See https://develop.sentry.dev/sdk/data-handling/#structuring-data
|
|
*/
|
|
export type SanitizedRequestData = {
|
|
url: string;
|
|
'http.method': string;
|
|
'http.fragment'?: string;
|
|
'http.query'?: string;
|
|
};
|
|
export interface RequestHookInfo {
|
|
headers?: WebFetchHeaders;
|
|
}
|
|
export interface ResponseHookInfo {
|
|
/**
|
|
* Headers from the response.
|
|
*/
|
|
headers?: WebFetchHeaders;
|
|
/**
|
|
* Error that may have occurred during the request.
|
|
*/
|
|
error?: unknown;
|
|
}
|
|
//# sourceMappingURL=request.d.ts.map |