HttpRequestResult
HTTP response.
Props
code
public codeResponse code. HTTP code (2xx-5xx) or one of our internal status codes
| 0 | Voxengine limits are violated (e.g. HTTP request count exceeded) |
| -1 | Unknown error |
| -2 | Malformed URL |
| -3 | Host not found |
| -4 | Connection error |
| -5 | Too many redirects |
| -6 | Network error |
| -7 | Timeout |
| -8 | Internal error |
| -9 | Server response is larger than 2 MB |
data
Optional
public dataIf HttpRequestOptions.rawOutput is true, data contains a list of 1-byte numbers corresponding to HTTP response data. If HttpRequestOptions.rawOutput is false, data is undefined.
error
Optional
public errorIn case of an error contains the error description
headers
Optional
public headersList of dictionaries with key and value fields representing HTTP headers returned by the remote server
raw_headers
Optional
public raw_headersHTTP header string returned by the remote server, without processing
text
Optional
public textHTTP response body if Content-Type is not binary