meilisearch-js icon indicating copy to clipboard operation
meilisearch-js copied to clipboard

Provide the possibility of adding requestOptions on any method performing a HTTP request

Open bidoubiwa opened this issue 2 years ago • 0 comments

Currently, as per #1461 it is now possible to provide a custom httpClient and requestOptions when instanciating your Client.

See example: https://github.com/meilisearch/meilisearch-js/blob/870f0f5aa737c19578fa786ca2280bd0d0e1d8fa/tests/client.test.ts#L52-L66

Ideally, we would like to be able to provide the requestOptions on any method that ultimately performs an HTTP call.

See example with algoliasearch

bidoubiwa avatar Apr 04 '23 13:04 bidoubiwa