ProtocolResponse
Properties
Link copied to clipboard
The response body. When returning stream as response, this is a Node.js readable stream representing the response body. When returning Buffer as response, this is a Buffer. When returning string as response, this is a string. This is ignored for other types of responses.
Link copied to clipboard
An object containing the response headers. The keys must be string, and values must be either string or Array of string.
Link copied to clipboard
The HTTP response code, default is 200.
Link copied to clipboard
The data used as upload data. This is only used for URL responses when method is "POST".