Class: MCPClient::HttpTransportBase::NormalizedResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp_client/http_transport_base.rb

Overview

Lightweight response wrapper for Faraday exception payloads (Hashes), so the exception path and the default path share one challenge pipeline. context carries the per-request capture state (see ResponseBodyCapture) for a response assembled from a captured body, so the parser can tell which events were already dispatched while the body was arriving.

Instance Attribute Summary collapse

Instance Attribute Details

#body ⇒ Object

Returns the value of attribute body

Returns:

  • (Object) —

    the current value of body



42
43
44
# File 'lib/mcp_client/http_transport_base.rb', line 42

def body
  @body
end

#context ⇒ Object

Returns the value of attribute context

Returns:

  • (Object) —

    the current value of context



42
43
44
# File 'lib/mcp_client/http_transport_base.rb', line 42

def context
  @context
end

#headers ⇒ Object

Returns the value of attribute headers

Returns:

  • (Object) —

    the current value of headers



42
43
44
# File 'lib/mcp_client/http_transport_base.rb', line 42

def headers
  @headers
end

#status ⇒ Object

Returns the value of attribute status

Returns:

  • (Object) —

    the current value of status



42
43
44
# File 'lib/mcp_client/http_transport_base.rb', line 42

def status
  @status
end