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
11 lines
691 B
Plaintext
11 lines
691 B
Plaintext
import { IncomingMessage } from 'node:http';
|
|
import { Scope } from '@sentry/core';
|
|
/**
|
|
* This method patches the request object to capture the body.
|
|
* Instead of actually consuming the streamed body ourselves, which has potential side effects,
|
|
* we monkey patch `req.on('data')` to intercept the body chunks.
|
|
* This way, we only read the body if the user also consumes the body, ensuring we do not change any behavior in unexpected ways.
|
|
*/
|
|
export declare function patchRequestToCaptureBody(req: IncomingMessage, isolationScope: Scope, maxIncomingRequestBodySize: 'small' | 'medium' | 'always', integrationName: string): void;
|
|
//# sourceMappingURL=captureRequestBody.d.ts.map
|