Automatically decompress message body if necessary.
HTTP headers.
HTTP version.
Maximum message body size in bytes, after decompression, unlimited by default.
Response status code.
Response status message.
Check if response has a 4xx response status code.
Check if response has a 4xx or 5xx response status code.
Check if response has a 3xx response status code.
Check if response has a 5xx response status code.
Check if response has a 2xx response status code.
Get Content-Type header value.
Optionaloptions: UploadOptionsGet message body as Buffer object.
Get message body as a readable stream.
Get async iterator for uploaded files from message body.
Optionaloptions: UploadOptionsGet form parameters from message body.
Optionaloptions: UploadOptionsGet HTML message body as @mojojs/dom object.
Pipe message body to writable stream.
Set HTTP header for message. // Set Server header body.set('Server', 'mojo.js');
Get async iterator for Server-Sent Events from response body. Note that this method is EXPERIMENTAL and might change without warning!
Get message body as string.
Get XML message body as @mojojs/dom object.
Get YAML message body as parsed data structure.
User-agent response class.