dataloader-codegen icon indicating copy to clipboard operation
dataloader-codegen copied to clipboard

Support specifying headers per-request

Open kedarv opened this issue 3 years ago • 1 comments

In Yelp/bravado, developers can specify per-request configuration by passing in _request_options to the service call. A potential usecase is specifying headers which are consumed by the downstream service (or services in the middle of the request path), such as Yelp/casper.

The python api looks like:

client = SwaggerClient.from_url(...)
request_options = { ... }
client.pet.getPetById(petId=42, _request_options=request_options).response().result

A potential solution is to expose a similarly named parameter in the JS equivalents.

kedarv avatar Jan 20 '21 17:01 kedarv

@kedarv can you sketch out what you expect the desired API to look like?

magicmark avatar Jan 20 '21 17:01 magicmark