From 5e8cfe91fdee6e2f5b1c436316feb44c6e5693c3 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 7 Nov 2024 09:40:15 +0000 Subject: [PATCH] Add obsolete `ResponseMimeType` alias for `ResponseContentType` A new property `ResponseContentType` has been added to the `ApiCallDetails` class. This reintroduces the original `ResponseMimeType` property marked as obsolete and serves as a temporary alias for the existing `ResponseContentType` property. --- .../Responses/HttpDetails/ApiCallDetails.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Elastic.Transport/Responses/HttpDetails/ApiCallDetails.cs b/src/Elastic.Transport/Responses/HttpDetails/ApiCallDetails.cs index 142f241..679463d 100644 --- a/src/Elastic.Transport/Responses/HttpDetails/ApiCallDetails.cs +++ b/src/Elastic.Transport/Responses/HttpDetails/ApiCallDetails.cs @@ -82,6 +82,17 @@ public string DebugInformation /// public byte[]? ResponseBodyInBytes { get; internal set; } + /// + /// The value of the Content-Type header in the response. + /// + [Obsolete("This property has been retired and replaced by ResponseContentType. " + + "Prefer using the updated property as this will be removed in a future release.")] + public string ResponseMimeType + { + get => ResponseContentType; + set => ResponseContentType = value; + } + /// /// The value of the Content-Type header in the response. ///