PureStorage-OpenConnect / rest-client

Pure Storage FlashArray Python REST 1.X Client
BSD 2-Clause "Simplified" License
39 stars 23 forks source link

support redefinition of connection timeout #8

Closed plz closed 6 years ago

plz commented 6 years ago

Considering the rest client relies on requests it would be good to allow users to redefine the timeout parameter.

mksteele commented 6 years ago

Can you elaborate on what you want? Would this be something like a global "timeout" parameter passed into the FlashArray() init function? Or would this be specified per each request?

plz commented 6 years ago

I think a global one would be a good start Miranda. Thanks!

zolstein commented 6 years ago

We have added the option to pass in a dict of parameters (request_kwargs) that we then pass to the request method. This should satisfy this use-case.