archaius
archaius copied to clipboard
URLConfigReader set headers/authentication
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?
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.