Class: SOAP::RPC::CGIStub::SOAPStdinRequest

Inherits:
SOAPRequest show all
Defined in:
lib/soap/rpc/cgistub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ SOAPStdinRequest

Returns a new instance of SOAPStdinRequest.



42
43
44
45
# File 'lib/soap/rpc/cgistub.rb', line 42

def initialize(stream)
  size = ENV['CONTENT_LENGTH'].to_i || 0
  @body = stream.read(size)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body



40
41
42
# File 'lib/soap/rpc/cgistub.rb', line 40

def body
  @body
end

Instance Method Details

#[](var) ⇒ Object



47
48
49
# File 'lib/soap/rpc/cgistub.rb', line 47

def [](var)
  ENV[var.gsub(/-/, '_').upcase]
end

#meta_varsObject



51
52
53
54
55
# File 'lib/soap/rpc/cgistub.rb', line 51

def meta_vars
  {
    'HTTP_SOAPACTION' => ENV['HTTP_SOAPAction']
  }
end