# HttpRequestMessage data type
> Version: _Available or changed with runtime version 1.0._
Represents an HTTP request message.
## Instance methods
The following methods are available on instances of the HttpRequestMessage data type.
Method name|Description
Content([HttpContent])<httprequestmessage-content-method>|Gets or sets the contents of the HTTP message.
GetCookie(Text, var Cookie)<httprequestmessage-getcookie-method>|Gets the specified cookie given a name.
httprequestmessage-getcookienames-method|Gets the list of cookie names.
GetHeaders(var HttpHeaders)<httprequestmessage-getheaders-method>|Gets a reference to the collection of HTTP request headers.
httprequestmessage-getrequesturi-method|Gets the URI used for the HTTP request.
httprequestmessage-getsecretrequesturi-method|Gets the secret URI used for the HTTP request.
Method([Text])<httprequestmessage-method-method>|Gets or sets the method type as defined in the HTTP standard.
RemoveCookie(Text)<httprequestmessage-removecookie-method>|Removes the specified cookie given a name.
SetCookie(Text, Text)<httprequestmessage-setcookie-string-string-method>|Sets the cookie given a name and value.
httprequestmessage-setcookie-cookie-method|Sets the cookie given a cookie object.
SetRequestUri(Text)<httprequestmessage-setrequesturi-method>|Sets the URI used for the HTTP request.
SetSecretRequestUri(SecretText)<httprequestmessage-setsecretrequesturi-method>|Sets the secret URI used for the HTTP request.
> NOTE
> For performance reasons all HTTP, JSON, TextBuilder, and XML types are reference types, not value types. Reference types holds a pointer to the data elsewhere in memory, whereas value types store its own data.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httprequestmessage/httprequestmessage-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httprequestmessage/httprequestmessage-data-type/
