Add support for httpx
in B113
(request_without_timeout
)
#1059
Labels
enhancement
New feature or request
httpx
in B113
(request_without_timeout
)
#1059
Is your feature request related to a problem? Please describe.
httpx has APIs that are really similar to requests. Currently, in B113 (
request_without_timeout
),bandit
only checks that timeouts are set inrequests
, but not inhttpx
.Describe the solution you'd like
Additionally to checking
requests
inB113
,bandit
could also check for requests without timeout inhttpx
.Describe alternatives you've considered
Implementing a new rule, but since support for
httpx
has been added in #861, it would probably be more consistent to update the existingB113
rather than implementing a new rule.Additional context
Implementation is in #1060, if you think that this would be useful to add.
Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.
The text was updated successfully, but these errors were encountered: