diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a64bbeb..66828230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +## [1.1.1] - 2023-04-06 + +### Added + +- Adds the Response Headers to the ApiException class + ## [1.1.0] - 2023-03-22 ### Added diff --git a/src/ApiException.cs b/src/ApiException.cs index 194a0576..ce1b57ce 100644 --- a/src/ApiException.cs +++ b/src/ApiException.cs @@ -2,6 +2,7 @@ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ using System; +using System.Collections.Generic; namespace Microsoft.Kiota.Abstractions; @@ -23,8 +24,14 @@ public ApiException(string message) : base(message) public ApiException(string message, Exception innerException) : base(message, innerException) { } + /// /// The HTTP response status code. /// public int ResponseStatusCode { get; set; } + + /// + /// The HTTP response headers. + /// + public IDictionary> ResponseHeaders { get; set; } = new Dictionary>(); } diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 4266f07f..66e20051 100644 --- a/src/Microsoft.Kiota.Abstractions.csproj +++ b/src/Microsoft.Kiota.Abstractions.csproj @@ -13,7 +13,7 @@ https://microsoft.github.io/kiota/ true true - 1.1.0 + 1.1.1 true false