You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[rest] switch base responses to ABCs (Azure#20448)
* switch to protocol
* update changelog
* add initial tests
* switch from protocol to abc
* improve HttpResponse docstrings
* lint
* HeadersType -> MutableMapping[str, str]
* remove iter_text and iter_lines
* update tests
* improve docstrings
* have base impls handle more code
* add set_read_checks
* commit to restart pipelines
* address xiang's comments
* lint
* clear json cache when encoding is updated
* make sure content type is empty string if doesn't exist
* update content_type to be None if there is no content type header
* fix passing encoding to text method error
* update is_stream_consumed docs
* remove erroneous committed code
Copy file name to clipboardExpand all lines: sdk/core/azure-core/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
- The `text` property on `azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse` has changed to a method, which also takes
23
23
an `encoding` parameter.
24
24
- Removed `iter_text` and `iter_lines` from `azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse`
25
+
-`azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse` are now abstract base classes. They should not be initialized directly, instead
26
+
your transport responses should inherit from them and implement them.
0 commit comments