class SOAP::RPC::CGIStub::SOAPStdinRequest

Attributes

body[R]

Public Class Methods

new(stream) click to toggle source
# File lib/soap/rpc/cgistub.rb, line 49
def initialize(stream)
  size = ENV['CONTENT_LENGTH'].to_i || 0
  @body = stream.read(size)
end

Public Instance Methods

[](var) click to toggle source
# File lib/soap/rpc/cgistub.rb, line 54
def [](var)
  ENV[var.gsub(/-/, '_').upcase]
end
cookies() click to toggle source
# File lib/soap/rpc/cgistub.rb, line 64
def cookies
  if cookie = ENV['HTTP_Cookie'] || ENV['Cookie']
    [WEBrick::Cookie.parse(cookie)]
  else
    EMPTY_COOKIES
  end
end
meta_vars() click to toggle source
# File lib/soap/rpc/cgistub.rb, line 58
def meta_vars
  {
    'HTTP_SOAPACTION' => ENV['HTTP_SOAPAction']
  }
end
user() click to toggle source
# File lib/soap/rpc/cgistub.rb, line 72
def user
  ENV['REMOTE_USER']
end