mm-std 0.4.0__py3-none-any.whl → 0.4.1__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.
mm_std/http/response.py
CHANGED
@@ -72,6 +72,15 @@ class HttpResponse:
|
|
72
72
|
"headers": self.headers,
|
73
73
|
}
|
74
74
|
|
75
|
+
@property
|
76
|
+
def content_type(self) -> str | None:
|
77
|
+
if self.headers is None:
|
78
|
+
return None
|
79
|
+
for key in self.headers:
|
80
|
+
if key.lower() == "content-type":
|
81
|
+
return self.headers[key]
|
82
|
+
return None
|
83
|
+
|
75
84
|
def __repr__(self) -> str:
|
76
85
|
parts: list[str] = []
|
77
86
|
if self.status_code is not None:
|
@@ -27,7 +27,7 @@ mm_std/concurrency/sync_task_runner.py,sha256=s5JPlLYLGQGHIxy4oDS-PN7O9gcy-yPZFo
|
|
27
27
|
mm_std/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
mm_std/http/http_request.py,sha256=h74_ZjACwdbeINjzhuEwNUpvnaHZvyGl7TExjlBwMGg,3704
|
29
29
|
mm_std/http/http_request_sync.py,sha256=aawVZfopzMI0alS3lkJQmVOVxH51rmtvsOK_inUlJOs,1537
|
30
|
-
mm_std/http/response.py,sha256=
|
31
|
-
mm_std-0.4.
|
32
|
-
mm_std-0.4.
|
33
|
-
mm_std-0.4.
|
30
|
+
mm_std/http/response.py,sha256=wRFeBgsmShwsC3goSpKq7VG-Pcr9FGsPwKn4vd_VWqU,3875
|
31
|
+
mm_std-0.4.1.dist-info/METADATA,sha256=9ZG4BGhh3YvzMNgnOT_hgUUhJfWUJ_iYuIjI1Up_R_A,446
|
32
|
+
mm_std-0.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
mm_std-0.4.1.dist-info/RECORD,,
|
File without changes
|