ipfs-shipyard / net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
MIT License
35 stars 13 forks source link

support-for-adding-custom-headers #9

Closed mihneacalugaru closed 1 year ago

mihneacalugaru commented 1 year ago

Add support for adding custom headers for HTTP request.

This proves to be useful when different nodes demand requests to be authenticated. For example, Infura demands a basic header-based authentication.

Arlodotexe commented 1 year ago

Hi @mihneacalugaru, thanks for opening a PR.

Rather than injecting custom headers via a property, they should be injected via a custom HttpClientHandler or HttpMessageHandler, something the library doesn't yet accommodate (but needs to).

Please see #10 instead