You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Currently, the only way to change headers for a request is to set additional headers on the constructor
/**
* Provide a custom Headers object for the request. In some situations such as testing,
* this allows you to control the response from the mock server.
*/
headers?: OutgoingHttpHeaders | Headers;
Unfortunately, this would mean tests need to redefine the client for every test scenario if they'd like to provide custom headers on a per-call basis such as for request tracing.
What we probably need is an options outside of the Mongo Atlas API options for controlling the request. At outset, this should be fetch (for changing the fetch option at the time of the request call) and headers for adding additional headers to the request.
Currently, the only way to change headers for a request is to set additional headers on the constructor
Unfortunately, this would mean tests need to redefine the client for every test scenario if they'd like to provide custom headers on a per-call basis such as for request tracing.
What we probably need is an
optionsoutside of the Mongo Atlas API options for controlling the request. At outset, this should befetch(for changing the fetch option at the time of the request call) andheadersfor adding additional headers to the request.