GetUrlResponseAsync

Parent Previous Next

GetUrlResponseAsync

Описание: метод возвращает HTTP ответ указанного URL

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

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


Пример:

int response = await tester.GetUrlResponseAsync("https://somovstudio.github.io/test.html");

await tester.AssertEqualsAsync(200, response);

Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation