Codeunit 2351 Rest Client Impl.

System Application, System.RestClient

Source AL, 326 lines

src/System Application/App/Rest Client/src/RestClientImpl.Codeunit.allines 7 to 22 of 326, Copyright (c) Microsoft Corporation. MIT

codeunit 2351 "Rest Client Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        DefaultHttpClientHandler: Codeunit "Http Client Handler";        HttpAuthenticationAnonymous: Codeunit "Http Authentication Anonymous";        RestClientExceptionBuilder: Codeunit "Rest Client Exception Builder";        HttpAuthentication: Interface "Http Authentication";        HttpClientHandler: Interface "Http Client Handler";        CurrHttpClientInstance: HttpClient;        IsInitialized: Boolean;        EnvironmentBlocksErr: Label 'The outgoing HTTP request to "%1" was blocked by the environment.', Comment = '%1 = url, e.g. https://microsoft.com';        ConnectionErr: Label 'Connection to the remote service "%1" could not be established.', Comment = '%1 = url, e.g. https://microsoft.com';

All 326 lines

Public procedures 27 in 29

Initialize()new in 23
Initialize(HttpClientHandlerInstance: Interface "Http Client Handler")new in 23changed in 26
Initialize(HttpAuthenticationInstance: Interface "Http Authentication")new in 23changed in 26
Initialize(HttpClientHandlerInstance: Interface "Http Client Handler"; HttpAuthenticationInstance: Interface "Http Authentication")new in 23
SetDefaultRequestHeader(Name: Text; Value: Text)new in 23
SetDefaultRequestHeader(Name: Text; Value: SecretText)new in 23

All 27 procedures

Changes 8 in 26

List17181920212223242526272829
Procedures8
Initialize(HttpClientHandlerInstance: Interface "Http Client Handler")new in 23changed in 26
changed, was Initialize(HttpClientHandler: Interface "Http Client Handler")
Initialize(HttpAuthenticationInstance: Interface "Http Authentication")new in 23changed in 26
changed, was Initialize(HttpAuthentication: Interface "Http Authentication")
Create(): Codeunit "Rest Client Impl."new in 26
added
Create(HttpClientHandlerInstance: Interface "Http Client Handler"): Codeunit "Rest Client Impl."new in 26
added
Create(HttpAuthenticationInstance: Interface "Http Authentication"): Codeunit "Rest Client Impl."new in 26
added
Create(HttpClientHandlerInstance: Interface "Http Client Handler"; HttpAuthenticationInstance: Interface "Http Authentication"): Codeunit "Rest Client Impl."new in 26
added

All 8 changes in 23-29