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

URLConfigReader set headers/authentication #513

Open
danieljamesscott opened this issue Sep 5, 2017 · 1 comment
Open

URLConfigReader set headers/authentication #513

danieljamesscott opened this issue Sep 5, 2017 · 1 comment

Comments

@danieljamesscott
Copy link

I'm using the URLConfigReader to read from an HTTP data source.

I need to set the 'Content-Type' or 'Accept' header to return the data in the correct format. However, I can't see how to access the HTTP connection object from the URL to allow me to set the header. Is this possible?

@rgallardo-netflix
Copy link
Contributor

This is not currently possible. It would require updating the class to hold a set of header-value pairs associated with each URL and having it applied to the connection somewhere close to line 74.
It doesn't look particularly difficult, but it's not something we'll be prioritizing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants