Class: DebugMcp::Server::RackRequestAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/debug_mcp/server.rb

Overview

Minimal Rack::Request-compatible adapter for WEBrick

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ RackRequestAdapter

Returns a new instance of RackRequestAdapter.



319
320
321
# File 'lib/debug_mcp/server.rb', line 319

def initialize(env)
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



317
318
319
# File 'lib/debug_mcp/server.rb', line 317

def env
  @env
end

Instance Method Details

#bodyObject



323
324
325
# File 'lib/debug_mcp/server.rb', line 323

def body
  @env["rack.input"]
end