RestGetStatusCodeAsync

Parent Previous Next

RestGetStatusCodeAsync

Описание: метод выполняет Get Rest запрос и в результате получает код статуса

Синтаксис: RestGetStatusCodeAsync(string url)

Возвращаемое значение: целое число (int)


Пример:

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

tester.ConsoleMsg(statusCode.ToString());

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor