Skip to content

Commit

Permalink
Add obsolete ResponseMimeType alias for ResponseContentType
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stevejgordon committed Nov 7, 2024
1 parent deef2ea commit 5e8cfe9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Elastic.Transport/Responses/HttpDetails/ApiCallDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ public string DebugInformation
/// </summary>
public byte[]? ResponseBodyInBytes { get; internal set; }

/// <summary>
/// The value of the Content-Type header in the response.
/// </summary>
[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;
}

/// <summary>
/// The value of the Content-Type header in the response.
/// </summary>
Expand Down

0 comments on commit 5e8cfe9

Please sign in to comment.