Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom headers in mithril client #1720

Open
slowbackspace opened this issue May 30, 2024 · 0 comments
Open

Custom headers in mithril client #1720

slowbackspace opened this issue May 30, 2024 · 0 comments
Assignees
Labels
feature 🚀 New implemented feature

Comments

@slowbackspace
Copy link

Hello!
We are in the process of integrating the Mithril Aggregator API into the Blockfrost API. We would like our users to be able to use the official mithril-client with custom URL pointing to our proxy for Mithril API. However, to access Blockfrost endpoints, users need to authenticate by sending a header with their API key. For this, we need a way to add a custom header to requests sent by mithril-client. Additionally, this could be also useful to control caching or to set a custom user-agent to make monitoring a little bit easier.

Would it be possible to expose access to the headers sent by mithril-client, perhaps by allowing a headers object to be passed during client initialization? We’ll gladly submit a PR to implement this feature.

Thank you!

@jpraynaud jpraynaud added the feature 🚀 New implemented feature label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New implemented feature
Projects
None yet
Development

No branches or pull requests

2 participants