Ghreq

Latest version: v0.5.0

Safety actively analyzes 623541 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.0

-------------------
- When a 403 response is received with a `Retry-After` or `x-ratelimit-reset`
header that would result in the next retry attempt being after `total_wait`
is exceeded, don't retry.

0.4.0

-------------------
- Migrated from setuptools to hatch
- Added a `set_headers` argument to the `Client` constructor for explicitly
setting or not setting headers on sessions
- Added `timeout` arguments to the request methods
- Added `allow_redirects` argument to `Client.request()` and
`Endpoint.request()`

0.3.1

-------------------
- Adjusted the type hints on `PrettyHTTPError` to indicate that the `response`
attribute is always non-`None`

0.3.0

-------------------
- A session-wide `Accept` header can now be specified when constructing a
`Client` without having to use a custom `Session`
- Added a `headers` argument to the `Client` constructor for setting arbitrary
additional headers without having to use a custom `Session`
- Gave `Client` a `close()` method

0.2.0

-------------------
- The `version` argument to `make_user_agent()` is now optional
- The `url` argument to `make_user_agent()` is now actually optional

0.1.1

-------------------
- Fix the type annotation on `Client.__enter__` to support subclassing

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.