Consider adding support for adding optional headers for http requests · Issue #204 · oras-project/oras-dotnet · GitHub
More Web Proxy on the site http://driver.im/
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
What is the version or commit of the ORAS .NET library?
No response
What would you like to be added?
There doesn't seem to be a way to specify custom headers to be added to outbound registry http calls. (please correct me if I'm wrong). It would be nice to allow this so that custom headers, such as correlation ids, can be added.
Why is this needed for the ORAS .NET library?
Makes http requests more robust and customizable
Are you willing to submit PRs to contribute to this feature?
Yes, I am willing to implement it.
The text was updated successfully, but these errors were encountered:
Hi @akashsinghal , do you want to set the same headers for all requests? Or do you want to set different headers for different requests?
If it's the former, does the following code help?
@Wwwsylvia I'd like to set different headers for different requests. Thus setting the default request headers at the client level won't help. If there's a way to configure on the request object itself and not on the client, that would be helpful.
What is the version or commit of the ORAS .NET library?
No response
What would you like to be added?
There doesn't seem to be a way to specify custom headers to be added to outbound registry http calls. (please correct me if I'm wrong). It would be nice to allow this so that custom headers, such as correlation ids, can be added.
Why is this needed for the ORAS .NET library?
Makes http requests more robust and customizable
Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: