Thanks for the response.
Am aware of the requests, and httpie libraries.
I think I need to elaborate, on my original query.
I want to refer to the Http headers as constants, and not as strings. So, for example
Therefore, was wondering if there is a module, like the
Am aware of the requests, and httpie libraries.
I think I need to elaborate, on my original query.
I want to refer to the Http headers as constants, and not as strings. So, for example
headers.get(http.HOST). This will eliminate a class of typo errors, and also not require one to remember the exact spelling of the Http header. Should it be
referer
or referrer
, and does case matter, etc. Therefore, was wondering if there is a module, like the
http
one referred above, (stdlib or otherwise), that could help with this.