class

Zazu::Response

Inherits Reference < Object

A successful (2xx) API response.

Constructors

new(status : Int32, request_id : String | Nil, body : JSON::Any, raw : String)
Source

Instance methods

body

The parsed JSON body, as-is from the API (snake_case keys). Non-JSON bodies parse to nil; the raw bytes stay on #raw.

Source
raw

The unparsed response body.

Source
request_id

Value of the X-Request-Id response header.

Source
status

HTTP status code.

Source