Class ResponseData
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
Response that will fulfill a request.
public class ResponseData
- Inheritance
-
ResponseData
Properties
Body
Response body (text content).
public string Body { get; set; }
Property Value
- string
Body as text.
BodyData
Response body (binary content).
public byte[] BodyData { get; set; }
Property Value
- byte[]
The body as binary.
ContentType
If set, equals to setting https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type response header.
public string ContentType { get; set; }
Property Value
- string
The Content-Type.
Headers
Response headers. Header values will be converted to strings. Headers with null values will be ignored. When multiple headers values are required use an ICollection to add multiple values for the Header key.
public Dictionary<string, object> Headers { get; set; }
Property Value
- Dictionary<string, object>
Headers.
Status
Response status code.
public HttpStatusCode? Status { get; set; }
Property Value
- HttpStatusCode?
Status Code.