Method: ActiveMcp::Server::Fetcher#initialize
- Defined in:
- lib/active_mcp/server/fetcher.rb
#initialize(base_uri: nil, auth: nil) ⇒ Fetcher
Returns a new instance of Fetcher.
4 5 6 7 8 9 10 |
# File 'lib/active_mcp/server/fetcher.rb', line 4 def initialize(base_uri: nil, auth: nil) @base_uri = base_uri if auth @auth_header = "#{(auth[:type] == :bearer) ? "Bearer" : "Basic"} #{auth[:token]}" end end |