HttpResponse interface
The HttpResponse interface represents the response from an HTTP request.
Properties
Content
This property returns the content of the response.
Type
String
DurationMs
This property returns the duration of the response in milliseconds.
Type
Long
Headers
This property returns the headers of the response.
Type
Dictionary<string,string>
Example
// some code
var contentType = response.Headers["Content-Type"];
console.Write("Content type was : " + contentType);
StatusCode
This property returns the status code of the response.
Type
Integer
Example
// some code
var statusCode = response.StatusCode;
console.Write("Status code was : " + statusCode);