Class HttpResponseContent
Represents the content of an HTTP response.
public class HttpResponseContent
- Inheritance
-
HttpResponseContent
- Inherited Members
Constructors
HttpResponseContent(byte[])
Initializes a new instance of the HttpResponseContent class.
public HttpResponseContent(byte[] content)
Parameters
content
byte[]The byte array representing the content of the response.
HttpResponseContent(string)
Initializes a new instance of the HttpResponseContent class.
public HttpResponseContent(string content)
Parameters
content
stringThe UTF8 encoded string representing the content of the response.
Methods
ReadAsByteArray()
Reads the content of the response as a byte array.
public byte[] ReadAsByteArray()
Returns
- byte[]
The content of the response as a byte array.
ReadAsString()
Reads the content of the response as a UTF8 encoded string.
public string ReadAsString()
Returns
- string
The content of the response as a string.