The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

HttpResponseMessage Class

Represents an HTTP response message.


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.

The following methods are available on the HttpResponseMessage class.

Method name Description
Content Gets the contents of the HTTP message.
Headers Gets the HTTP request's HTTP headers.
HttpStatusCode Gets the status code of the HTTP response.
IsSuccessStatusCode Gets a value that indicates if the HTTP response was successful.
SetRequestUri Gets the reason phrase which typically is sent by servers together with the status code.

See Also

HTTP, JSON, TextBuilder, and XML API
Getting Started with AL
Developing Extensions