palantir / conjure-typescript-runtime

An HTTP bridge library for use in front end applications and generated conjure code
Apache License 2.0
5 stars 13 forks source link

Add ability to dynamically specify user agents #141

Closed VVKot closed 2 years ago

VVKot commented 2 years ago

Before this PR

User agents can only be specified in static fashion. Even though we added the ability to specify additional headers in https://github.com/palantir/conjure-typescript-runtime/pull/131, sometimes it is not enough. Sometimes we create a client in one context - but then re-use the same client in a different context.

After this PR

==COMMIT_MSG== Add ability to dynamically specify headers. ==COMMIT_MSG==

Possible downsides?

"More than one obvious way to do it"