Class: MCPClient::HttpTransportBase::NormalizedResponse
- Inherits:
-
Struct
- Object
- Struct
- MCPClient::HttpTransportBase::NormalizedResponse
- 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
-
#body ⇒ Object
Returns the value of attribute body.
-
#context ⇒ Object
Returns the value of attribute context.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute 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
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
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
42 43 44 |
# File 'lib/mcp_client/http_transport_base.rb', line 42 def status @status end |