Make HTTPProvider.get_request_headers()
a class-level method
#3466
Labels
HTTPProvider.get_request_headers()
a class-level method
#3466
What feature should we add?
At the time of writing this issue, the method is defined here:
https://github.com/ethereum/web3.py/blob/main/web3/providers/rpc/rpc.py#L119-L123
It is:
I am requesting this method be exposed at the class-level, to be re-written as:
Use-case: This allows me to grab the default headers before constructing an
HTTPProvider
object for the purpose of modifying them / appending to them, without having to redefine.The text was updated successfully, but these errors were encountered: