RestGetStatusCodeAsync

Parent Previous Next

RestGetStatusCodeAsync

Description: the method executes a Get Rest request and as a result receives a status code

Syntax: RestGetStatusCodeAsync(string url)

Return value: int


Example:

int statusCode = await tester.RestGetAsync("https://jsonplaceholder.typicode.com");

tester.ConsoleMsg(statusCode.ToString());

Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications