public class HttpBinaryResponse
HTTP response containing the exact response bytes, without text decoding. Use HttpResponse for text with charset decoding. Binary responses preserve NUL bytes and non-Unicode contents such as PNG, ZIP or PDF files.
image = HttpClient().getBinary("https://example.com/logo.png"); print(image.content.size)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly | contentcontent as Byte[] |
Undecoded entity bytes. |
| public readonly | headers | Response headers. |
| public readonly | httpMethodhttpMethod as String |
Request method. |
| public readonly | statusCodestatusCode as Int |
HTTP response status. |
| public readonly | urlurl as String |
Effective URL after redirects. |