# Class BSV::Auth::AuthResponse <a id="class-BSV-Auth-AuthResponse"></a>

**Inherits:** `Object`

Immutable value object representing an authenticated HTTP response.

## Attributes
### `body` [R] <a id="attribute-i-body"></a> <a id="body-instance_method"></a>
Returns the value of attribute body.

### `headers` [R] <a id="attribute-i-headers"></a> <a id="headers-instance_method"></a>
Returns the value of attribute headers.

### `identity_key` [R] <a id="attribute-i-identity_key"></a> <a id="identity_key-instance_method"></a>
Returns the value of attribute identity_key.

### `status` [R] <a id="attribute-i-status"></a> <a id="status-instance_method"></a>
Returns the value of attribute status.

## Public Instance Methods
### `initialize(status:, headers:, body:, identity_key:)` <a id="method-i-initialize"></a> <a id="initialize-instance_method"></a>
- **@param** `status` [Integer] HTTP status code
- **@param** `headers` [Hash] response headers
- **@param** `body` [String] response body
- **@param** `identity_key` [String] server's compressed public key hex
- **@return** [AuthResponse] a new instance of AuthResponse
