Constructor for a OINOHttpResult
Optionalinit: OINOHttpResultInitinitialization values
ReadonlybodyHTTP body data
HTTP cache expiration value Note: default 0 means no expiration and 'Pragma: no-cache' is set.
ReadonlyheadersHTTP headers
HTTP cache last-modified value
Error / warning messages
HTTP status code
HTTP status message
Wheter request was successfully executed
Add debug message. Returns self reference for chaining.
HTTP status message
operation where debug occured
Add info message. Returns self reference for chaining.
HTTP status message
operation where info occured
Add warning message. Returns self reference for chaining.
HTTP status message
operation where warning occured
Returns the request body as Buffer.
Returns the request body as URLSearchParams (form body).
Returns the request body parsed as JSON object.
Returns the request body as a text string.
Copy given messages to HTTP headers.
HTTP headers
wether error messages should be copied (default true)
wether warning messages should be copied (default false)
wether info messages should be copied (default false)
wether debug messages should be copied (default false)
Get the ETag value for the body opportunistically, i.e. don't calculate until requested and reuse value.
Get a Response object from the result values.
Optionalheaders: OINOHeadersInitHTTP headers (overrides existing values)
Print result for logging.
Set HTTP error status using given code and message. Returns self reference for chaining.
HTTP status code
HTTP status message
operation where error occured
Set HTTP OK status (does not reset messages).
StaticfromCreate from a Response object from the result values.
fetch Response object
Specialized result for HTTP responses.