Codeunit 2352 Http Request Message

System Application, System.RestClient

Source AL, 175 lines

src/System Application/App/Rest Client/src/HttpRequestMessage.Codeunit.allines 8 to 23 of 175, Copyright (c) Microsoft Corporation. MIT

codeunit 2352 "Http Request Message"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    var        HttpRequestMessageImpl: Codeunit "Http Request Message Impl.";    /// <summary>Creates a new instance of the HttpRequestMessage object.</summary>    /// <param name="Method">The HTTP method to use. Valid options are GET, POST, PATCH, PUT, DELETE, HEAD, OPTIONS</param>    /// <param name="RequestUri">The Uri to use for the HTTP request.</param>    /// <param name="Content">The Http Content object to use for the HTTP request.</param>    /// <returns>The create Http Request Message</returns>    procedure Create(Method: Enum "Http Method"; RequestUri: Text; Content: Codeunit "Http Content") HttpRequestMessage: Codeunit "Http Request Message"    begin

All 175 lines

Public procedures 20 in 29

SetHttpMethod(Method: Text)new in 23
SetHttpMethod(Method: Enum "Http Method")new in 23
GetHttpMethod(): Textnew in 23
SetRequestUri(Uri: Text)new in 23
GetRequestUri(): Textnew in 23
SetHeader(HeaderName: Text; HeaderValue: Text)new in 23

All 20 procedures

Changes 10 in 26

List17181920212223242526272829
Procedures10
Create(Method: Enum "Http Method"; RequestUri: Text; Content: Codeunit "Http Content"): Codeunit "Http Request Message"new in 26
added
GetHeaderValues(HeaderName: Text): Listnew in 26
added
GetSecretHeaderValues(HeaderName: Text): Listnew in 26
added
SetCookie(Name: Text; Value: Text): Booleannew in 26
added
SetCookie(Cookie: Cookie): Booleannew in 26
added
GetCookieNames(): Listnew in 26
added

All 10 changes in 23-29