Skip to content

ResponseData

Namespace: PuppeteerSharp

public class ResponseData

Response that will fulfill a request.

Inheritance: object

View source

public string Body { get; set; }

Response body (text content).

Value: string — Body as text.

View source

public byte[] BodyData { get; set; }

Response body (binary content).

Value: byte[] — The body as binary.

View source

public string ContentType { get; set; }

If set, equals to setting <a href=“https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type&lt;/a> response header.

Value: string — The Content-Type.

View source

public Dictionary<string, object> Headers { get; set; }

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.

Value: Dictionary<string, object> — Headers.

View source

public HttpStatusCode? Status { get; set; }

Response status code.

Value: HttpStatusCode? — Status Code.

View source

Made with love by Dario Kondratiuk