finalsa-common-http-client 0.0.6__py3-none-any.whl → 0.0.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
finalsa/http/_shared.py CHANGED
@@ -21,7 +21,7 @@ class InternalHttpError(BaseDomainException):
21
21
 
22
22
  def __init__(self, response_code: int | None = None):
23
23
  super().__init__(
24
- message="Internal HTTP error",
24
+ message=f"Internal HTTP error: {response_code}",
25
25
  response_code=response_code or self.response_code,
26
26
  name="InternalHttpError"
27
27
  )
@@ -116,7 +116,7 @@ class BaseSyncHttpClient:
116
116
  except requests.RequestException as e:
117
117
  if e.response is not None and "Content-Type" in e.response.headers and e.response.headers["Content-Type"] == "application/json":
118
118
  data = e.response.json()
119
- shared.raise_for_response(data, e.response.status)
119
+ shared.raise_for_response(data, e.response.status_code)
120
120
  raise e
121
121
 
122
122
  def get(self, path: str, **kwargs: Any) -> requests.Response:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finalsa-common-http-client
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: HTTP client library for common data types used in business applications
5
5
  Project-URL: Homepage, https://github.com/finalsa/finalsa-http-client
6
6
  Project-URL: Documentation, https://github.com/finalsa/finalsa-http-client#readme
@@ -0,0 +1,10 @@
1
+ finalsa/http/__init__.py,sha256=tTeA_AP5gfFiXF783AxX5ZtSiQXxR1jkQ196J9YxXNk,419
2
+ finalsa/http/_shared.py,sha256=EdWPQwVrOd-yBs0VdIAKE8u2kiEm2gyraEvODJIZzek,3489
3
+ finalsa/http/async_client/__init__.py,sha256=L25WfVpUpPZlMv6-cgeWlNvmK5UJOhLZ1NOndcIsA9w,73
4
+ finalsa/http/async_client/base.py,sha256=22L6QLfjAF4H8z9CcE8PhNuI2lJFbUkRLE405YXUFWw,5735
5
+ finalsa/http/sync_client/__init__.py,sha256=ocLE6dofwYCD9_rJpIP1KhlIujRFcaJfhoaeXVrSCVE,59
6
+ finalsa/http/sync_client/base.py,sha256=IsyVZrTweg78eAA0cahp6RGJFhmHpeNYuTtVJuhZIZs,5126
7
+ finalsa_common_http_client-0.0.7.dist-info/METADATA,sha256=wNuVrZs-9bFbQ_9jUQKJBlyDf0wSNU7N9COu-8fB3ZA,9102
8
+ finalsa_common_http_client-0.0.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9
+ finalsa_common_http_client-0.0.7.dist-info/licenses/LICENSE.md,sha256=yqzhfnTBr2S4lUBx-yibVPOIXRUDPrSUN9-_7AsC6OU,1084
10
+ finalsa_common_http_client-0.0.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- finalsa/http/__init__.py,sha256=tTeA_AP5gfFiXF783AxX5ZtSiQXxR1jkQ196J9YxXNk,419
2
- finalsa/http/_shared.py,sha256=qrgleO4fbDZC3J1UNfdzMsl43yRItjAZa1I3XcRXT38,3471
3
- finalsa/http/async_client/__init__.py,sha256=L25WfVpUpPZlMv6-cgeWlNvmK5UJOhLZ1NOndcIsA9w,73
4
- finalsa/http/async_client/base.py,sha256=22L6QLfjAF4H8z9CcE8PhNuI2lJFbUkRLE405YXUFWw,5735
5
- finalsa/http/sync_client/__init__.py,sha256=ocLE6dofwYCD9_rJpIP1KhlIujRFcaJfhoaeXVrSCVE,59
6
- finalsa/http/sync_client/base.py,sha256=EWdfk4T5ggDMFppCO9xIRn6QKeiW9NqL-e5et3DFvGI,5121
7
- finalsa_common_http_client-0.0.6.dist-info/METADATA,sha256=ZOaVl2JCLS3wnGlZcZiKZpjj38x2RBOHZ9fTVnpZFwo,9102
8
- finalsa_common_http_client-0.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- finalsa_common_http_client-0.0.6.dist-info/licenses/LICENSE.md,sha256=yqzhfnTBr2S4lUBx-yibVPOIXRUDPrSUN9-_7AsC6OU,1084
10
- finalsa_common_http_client-0.0.6.dist-info/RECORD,,