HttpResponseMessage Data Type
Represents a HTTP response message including the status code and data.
The following methods are available on instances of the HttpResponseMessage data type.
|Content()||Gets the contents of the HTTP response.|
|Headers()||Gets the HTTP response's HTTP headers.|
|IsSuccessStatusCode()||Gets a value that indicates if the HTTP response was successful.|
|IsBlockedByEnvironment()||Gets a value that indicates if the HTTP response is the result of the environment blocking an outgoing HTTP request.|
|ReasonPhrase()||Gets the reason phrase which typically is sent by servers together with the status code.|
|HttpStatusCode()||Gets the status code of the HTTP response.|
The size of the
HttpResponseMessage is determined by the
HttpClient AL Function Response Size setting on the Dynamics 365 Business Central server. The default value is
150. For more information, see Microsoft Dynamics 365 Business Central Server Configuration.
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.