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
Add RawResponse to ErrorKind::HttpResponse (#2983)
Renames `RawResponse` to `BufResponse` - inspired by
`std::io::BufReader`, and adds a new `RawResponse` where the body is
fully read and stored in `Bytes`.
Refactored `Headers` and other types necessary to add `RawResponse` to
`ErrorKind::HttpResponse`.
Fixes#2962Fixes#2495
Relates to #2725
Relates to #1995
Copy file name to clipboardExpand all lines: sdk/core/azure_core/CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,23 @@
4
4
5
5
### Features Added
6
6
7
+
- Added `RawResponse` to `ErrorKind::HttpResponse` that contains the HTTP status code, headers, and complete error response body.
7
8
- Added `RequestContent::from_slice()`.
8
9
- Added `TryFrom<T> for RequestContent<T, JsonFormat>` for JSON primitives.
9
10
- Added support for WASM to the `async_runtime` module.
10
11
- Added logging policy to log HTTP requests and responses in the pipeline. As a part of this change, sanitization support was added to places which log HTTP headers and URLs. The `azure_core::http::ClientOptions` has been enhanced with a `LoggingOptions` which allows a user/service client to specify headers or URL query parameters which should be allowed. Note that the sanitization feature is disabled if you build with the `debug` feature enabled.
11
12
12
13
### Breaking Changes
13
14
15
+
- Added the ability to configure pipeline configuration independently from `ClientOptions`. This adds a new optional `PipelineOptions` parameter to `azure_core::http::Pipeline::new()`. If not specified, it defaults to the expected options for `azure_core` services.
14
16
- Changed `FromStr for RequestContent<T, F>` to `RequestContent::from_str()`.
15
17
- Changed `TryFrom<&'static str> for RequestContent<T, F>` to `RequestContent::from_static()`.
16
18
- Changed `TryFrom<Bytes> for RequestContent<T, F>` to `From<Bytes> for RequestContent<T, F>` because it was already infallible.
17
19
- Removed `TryFrom<Vec<u8>> for RequestContent<T, F>` since `RequestContent::from()` already exists.
18
20
- Removed feature `reqwest_rustls_tls`. See [README.md](https://github.com/heaths/azure-sdk-for-rust/blob/main/sdk/core/azure_core/README.md) for alternative HTTP client configuration.
19
21
- Removed the `fs` module including the `FileStream` and `FileStreamBuilder` types. Moved to `examples/` for `typespec_client_core` to copy if needed.
20
22
- Removed the `setters` macro.
21
-
-Added the ability to configure pipeline configuration independently from `ClientOptions`. This adds a new optional `PipelineOptions` parameter to `azure_core::http::Pipeline::new()`. If not specified, it defaults to the expected options for `azure_core` services.
23
+
-Renamed `RawResponse`to `BufResponse`. New `RawResponse` contains complete body as `Bytes` used in `ErrorKind::HttpResponse`.
0 commit comments