RequestWithOptions

Properties

NameType
callback(response: RequestResponse) => void
compressionCompression | 'best-available'
dataRecord<string, any> | Record<string, any>[]
disableTransport('XHR' | 'fetch' | 'sendBeacon')[]
fetchOptions{ cache?: RequestInit['cache']; next?: NextOptions; }
fireCallbackOnDropboolean

When set, _send_request invokes callback with a synthetic response on the paths that otherwise drop a request without notifying the caller (client not loaded, server rate limit). Opt-in so existing callers keep their current behavior; the logs pipeline uses it to keep records for a later retry instead of losing them silently.

headersRecord<string, any>
method'POST' | 'GET'
noRetriesboolean
timeoutnumber
transport'XHR' | 'fetch' | 'sendBeacon'
urlstring
urlQueryArgs{ compression: Compression; }

Community questions

Questions about this page? or post a community question.