UNPKG

791 BTypeScriptView Raw
1/** Request data included in an event as sent to Sentry */
2export interface Request {
3 url?: string;
4 method?: string;
5 data?: any;
6 query_string?: QueryParams;
7 cookies?: {
8 [key: string]: string;
9 };
10 env?: {
11 [key: string]: string;
12 };
13 headers?: {
14 [key: string]: string;
15 };
16}
17export type QueryParams = string | {
18 [key: string]: string;
19} | Array<[string, string]>;
20/**
21 * Request data that is considered safe for `span.data` on `http.client` spans
22 * and for `http` breadcrumbs
23 * See https://develop.sentry.dev/sdk/data-handling/#structuring-data
24 */
25export type SanitizedRequestData = {
26 url: string;
27 'http.method': string;
28 'http.fragment'?: string;
29 'http.query'?: string;
30};
31//# sourceMappingURL=request.d.ts.map
\No newline at end of file