Skip to content

Commit b59b7bd

Browse files
author
Liora Milbaum
authored
refactor: add reason property to RequestsResponse (#2439)
1 parent 3e1c625 commit b59b7bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab/http_backends/requests_backend.py

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def headers(self) -> CaseInsensitiveDict[str]:
2727
def content(self) -> bytes:
2828
return self._response.content
2929

30+
@property
31+
def reason(self) -> str:
32+
return self._response.reason
33+
3034
def json(self) -> Any:
3135
return self._response.json()
3236

0 commit comments

Comments
 (0)