Skip to content
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

Add optional timeout parameter to endpoints #1754

Open
sssoleileraaa opened this issue Mar 31, 2020 · 0 comments
Open

Add optional timeout parameter to endpoints #1754

sssoleileraaa opened this issue Mar 31, 2020 · 0 comments
Labels

Comments

@sssoleileraaa
Copy link
Contributor

Description

Once #648 is done, we will want to have a way to pass the request timeout to api calls instead of setting it on the api object directly, like we do here:

api_client.default_request_timeout = 40
for example.

We already have an example of how to do this with download_submission, see https://github.com/freedomofpress/securedrop-sdk/blob/5af0b200f00bc931cfa78c0923e7354aeda09d0e/sdclientapi/__init__.py#L556-L558.

@legoktm legoktm added the sdk label Jan 5, 2024
@legoktm legoktm transferred this issue from freedomofpress/securedrop-sdk Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants