azure-core_1.0.0-beta.8
Pre-release
Pre-release
1.0.0-beta.8 (2021-04-07)
New Features
- Added
Azure::Core::Url::GetScheme()
. - Added
Azure::Core::Context::TryGetValue()
. - Added
Azure::Core::Context::GetDeadline()
. - Added
Azure::Core::Credentials::TokenCredentialOptions
. - Added useful fields to the
Azure::Core::RequestFailedException
class such asStatusCode
,ReasonPhrase
, and theRawResponse
, for better diagnosis of errors.
Breaking Changes
- Simplified the
Response<T>
API surface to expose two public fields with direct access:T Value
and aunique_ptr
to anAzure::Core::Http::RawResponse
. - Renamed
Azure::Nullable<T>::GetValue()
toValue()
. - Removed from
Azure::Core::Http::Request
:SetUploadChunkSize()
.GetHTTPMessagePreBody()
.GetUploadChunkSize()
.GetHeadersAsString()
.
- Changes to
Azure::Core::Http::RawResponse
:- Removed
SetHeader(std::string const& header)
- Removed
SetHeader(uint8_t const* const first, uint8_t const* const last)
. - Removed
GetMajorVersion()
. - Removed
GetMinorVersion()
. - Renamed
GetBodyStream()
toExtractBodyStream()
.
- Removed
- Changes to
Azure::Core::Context
:- Removed
Get()
andHasKey()
in favor of a new methodTryGetValue()
. - Changed input parameter type of
WithDeadline()
toAzure::DateTime
.
- Removed
- Removed
Azure::Core::PackageVersion
. - Removed from
Azure::Core::Http::Policies
namespace:HttpPolicyOrder
,TransportPolicy
,RetryPolicy
,RequestIdPolicy
,TelemetryPolicy
,BearerTokenAuthenticationPolicy
,LogPolicy
. - Removed
AppendQueryParameters()
,GetUrlWithoutQuery()
andGetUrlAuthorityWithScheme()
fromAzure::Core::Url
. - Changed the
Azure::Core::Http::HttpMethod
regular enum into an extensible enum class and removed theHttpMethodToString()
helper method. - Introduced
Azure::Core::Context::Key
class which takes place ofstd::string
used forAzure::Core::Context
keys previously. - Changed the casing of
SSL
in API names toSsl
:- Renamed type
Azure::Core::Http::CurlTransportSSLOptions
toCurlTransportSslOptions
. - Renamed member
Azure::Core::Http::CurlTransportOptions::SSLOptions
toSslOptions
. - Renamed member
Azure::Core::Http::CurlTransportOptions::SSLVerifyPeer
toSslVerifyPeer
.
- Renamed type
Other changes and Improvements
- Moved
Azure::Core::Http::Request
to its own header file fromhttp.hpp
toinc/azure/core/http/raw_response.hpp
. - Moved
Azure::Core::Http::HttpStatusCode
to its own header file fromhttp.hpp
toinc/azure/core/http/http_status_code.hpp
.