Skip to content

Class BSV::Auth::AuthResponse

Inherits: Object

Immutable value object representing an authenticated HTTP response.

Attributes

body [R]

Returns the value of attribute body.

headers [R]

Returns the value of attribute headers.

identity_key [R]

Returns the value of attribute identity_key.

status [R]

Returns the value of attribute status.

Public Instance Methods

initialize(status:, headers:, body:, identity_key:)

  • @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