Skip to content

Commit

Permalink
add PATCH method for retries
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Dec 24, 2024
1 parent 0de9d92 commit c2b14be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_tools/client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def AsyncSession(
retries: int,
backoff_factor: float,
allowed_methods: Collection[str] = ('HEAD', 'TRACE', 'GET', 'POST', 'PUT', 'OPTIONS', 'DELETE'),
allowed_methods: Collection[str] = ('HEAD', 'TRACE', 'GET', 'POST', 'PATCH', 'PUT', 'OPTIONS', 'DELETE'),
status_forcelist: Collection[int] = (408, 429, 500, 502, 503, 504),
) -> FuturesSession:
"""Return a Session object with full retry capabilities.
Expand Down

0 comments on commit c2b14be

Please sign in to comment.