Edit

Share via


TestHttpResponseMessage.IsSuccessfulRequest([Boolean]) Method

Version: Available or changed with runtime version 15.0.

Gets or sets a value that indicates if the HTTP request was successful or not. By setting this value it is possible to mock the return value of the HttpClient call.

Syntax

IsSuccessfulRequest :=   TestHttpResponseMessage.IsSuccessfulRequest([SetIsSuccessfulRequest: Boolean])

Note

This method can be invoked using property access syntax.

Parameters

TestHttpResponseMessage
 Type: TestHttpResponseMessage
An instance of the TestHttpResponseMessage data type.

[Optional] SetIsSuccessfulRequest
 Type: Boolean
true if the HttpClient request should indicate success, otherwise false.

Return Value

IsSuccessfulRequest
 Type: Boolean
true if the HttpClient request should indicate success, otherwise false.

TestHttpResponseMessage data type
Getting started with AL
Developing extensions