Skip to content
Discussion options

You must be logged in to vote

Hey @ktsangop - you shouldn't need to access those internal base transport options.

Something like so should suffice:

/** * Creates a Custom transport. */exportfunctionmakeCustomTransport(options: BrowserTransportOptions,): Transport{asyncfunctionmakeRequest(request: TransportRequest): PromiseLike<TransportMakeRequestResponse>{try{constresponse=awaitmakeARequestFromUrl(options.url,request.body);// the `statusCode` and the two rate limiting headers consttransportResponse={statusCode: response.status,headers: {'x-sentry-rate-limits': response.header['X-Sentry-Rate-Limits'],'retry-after': response.headers

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ktsangop
Comment options

@AbhiPrasad
Comment options

@ktsangop
Comment options

@AbhiPrasad
Comment options

@AbhiPrasad
Comment options

Answer selected byktsangop
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@ktsangop@AbhiPrasad