-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make access to the HTTP Request Headers easier #15
Comments
Thanks for these reports. It would be helpful if when reporting something like this you provided a pointer to the code you're writing about. It would save me some time, and would help me be sure I'm looking at the right part of the code. |
oh sorry, I should've added some references. What meant is that it would be great if this object here also included the request HTTP headers: Lines 507 to 513 in 965c38a
The low-level request included has headers, but using them has some friction. Adding them as an extra property would make it easier. My use-case is to use authentications similar to OAuth and other tokens that are passed via headers instead of arguments to the RPC call. |
Thanks for the pointer to the code in question. Two more questions --
|
At the moment, the callback executed when a XML-RPC Server receives a request exposes the original request object as its last argument. That is very useful, but it adds a bit of friction when attempting to access HTTP Request Headers. It would be great if the headers could be added to that callback as another argument before the original final HTTP Request argument. Ideally the headers could be exposed as a simple object.
My reasoning for wanting easy access to them is because they help with developing authentication workflows.
The text was updated successfully, but these errors were encountered: