archaius icon indicating copy to clipboard operation
archaius copied to clipboard

URLConfigReader set headers/authentication

Open danieljamesscott opened this issue 7 years ago • 1 comments

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?

danieljamesscott avatar Sep 05 '17 10:09 danieljamesscott

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.

rgallardo-netflix avatar Feb 15 '23 22:02 rgallardo-netflix