Codeunit 2355 Http Content Impl.

System Application, System.RestClient

Source AL, 303 lines

src/System Application/App/Rest Client/src/HttpContentImpl.Codeunit.allines 9 to 24 of 303, Copyright (c) Microsoft Corporation. MIT

codeunit 2355 "Http Content Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        CurrHttpContentInstance: HttpContent;        ContentTypeEmptyErr: Label 'The value of the Content-Type header must be specified.';        MimeTypeTextPlainTxt: Label 'text/plain', Locked = true;        MimeTypeTextXmlTxt: Label 'text/xml', Locked = true;        MimeTypeApplicationOctetStreamTxt: Label 'application/octet-stream', Locked = true;        MimeTypeApplicationJsonTxt: Label 'application/json', Locked = true;    #region Constructors    procedure Create(Content: Text) HttpContentImpl: Codeunit "Http Content Impl."

All 303 lines

Public procedures 33 in 29

SetContentTypeHeader(ContentType: Text)new in 23
AddContentEncoding(ContentEncoding: Text)new in 23
SetHeader(Name: Text; Value: Text)new in 23
SetHeader(Name: Text; Value: SecretText)new in 23
GetHttpContent(): HttpContentnew in 23
AsText(): Textnew in 23

All 33 procedures

Changes 15 in 26

List17181920212223242526272829
Procedures15
Create(Content: Text): Codeunit "Http Content Impl."new in 26
added
Create(Content: SecretText): Codeunit "Http Content Impl."new in 26
added
Create(Content: Text; ContentType: Text): Codeunit "Http Content Impl."new in 26
added
Create(Content: SecretText; ContentType: Text): Codeunit "Http Content Impl."new in 26
added
Create(Content: JsonObject): Codeunit "Http Content Impl."new in 26
added
Create(Content: JsonArray): Codeunit "Http Content Impl."new in 26
added

All 15 changes in 23-29