OpenAPITools / OpenAPITools/openapi-generator
[REQ] Dart-dio ability to update timeouts per request
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
Currently we can configure timeouts globally on the dio object, but sometime we need to increase the timeout for one request only, for example if you have an endpoint to upload big files you don't want to set you sendTimeout to a big value globally.
Describe the solution you'd like
Be able to pass timeout value to generated methods of API class that will be added to Dio's option.
Describe alternatives you've considered
can be added on the "extra" but would be more ugly and less clear for users.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by locating the Dart-Dio generator entry points for generated API methods and how those methods build Dio options. Done means a generated method can accept a per-request timeout and apply it without changing the Dio object's global timeout settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100