Class: ClaudeAgentSDK::McpHttpServerConfig
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::McpHttpServerConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, headers: nil) ⇒ McpHttpServerConfig
constructor
A new instance of McpHttpServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(url:, headers: nil) ⇒ McpHttpServerConfig
Returns a new instance of McpHttpServerConfig.
624 625 626 627 628 |
# File 'lib/claude_agent_sdk/types.rb', line 624 def initialize(url:, headers: nil) @type = 'http' @url = url @headers = headers end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
622 623 624 |
# File 'lib/claude_agent_sdk/types.rb', line 622 def headers @headers end |
#type ⇒ Object
Returns the value of attribute type.
622 623 624 |
# File 'lib/claude_agent_sdk/types.rb', line 622 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
622 623 624 |
# File 'lib/claude_agent_sdk/types.rb', line 622 def url @url end |
Instance Method Details
#to_h ⇒ Object
630 631 632 633 634 |
# File 'lib/claude_agent_sdk/types.rb', line 630 def to_h result = { type: @type, url: @url } result[:headers] = @headers if @headers result end |