Class: SOAP::RPC::CGIStub::SOAPStdinRequest
Constant Summary
Constants inherited
from SOAPRequest
SOAP::RPC::CGIStub::SOAPRequest::EMPTY_COOKIES
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SOAPStdinRequest.
47
48
49
50
|
# File 'lib/soap/rpc/cgistub.rb', line 47
def initialize(stream)
size = ENV['CONTENT_LENGTH'].to_i || 0
@body = stream.read(size)
end
|
Instance Attribute Details
Returns the value of attribute body.
45
46
47
|
# File 'lib/soap/rpc/cgistub.rb', line 45
def body
@body
end
|
Instance Method Details
52
53
54
|
# File 'lib/soap/rpc/cgistub.rb', line 52
def [](var)
ENV[var.gsub(/-/, '_').upcase]
end
|
62
63
64
65
66
67
68
|
# File 'lib/soap/rpc/cgistub.rb', line 62
def cookies
if cookie = ENV['HTTP_Cookie'] || ENV['Cookie']
[WEBrick::Cookie.parse(cookie)]
else
EMPTY_COOKIES
end
end
|
56
57
58
59
60
|
# File 'lib/soap/rpc/cgistub.rb', line 56
def meta_vars
{
'HTTP_SOAPACTION' => ENV['HTTP_SOAPAction']
}
end
|
70
71
72
|
# File 'lib/soap/rpc/cgistub.rb', line 70
def user
ENV['REMOTE_USER']
end
|