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.
49
50
51
52
|
# File 'lib/soap/rpc/cgistub.rb', line 49
def initialize(stream)
size = ENV['CONTENT_LENGTH'].to_i || 0
@body = stream.read(size)
end
|
Instance Attribute Details
Returns the value of attribute body.
47
48
49
|
# File 'lib/soap/rpc/cgistub.rb', line 47
def body
@body
end
|
Instance Method Details
54
55
56
|
# File 'lib/soap/rpc/cgistub.rb', line 54
def [](var)
ENV[var.gsub(/-/, '_').upcase]
end
|
64
65
66
67
68
69
70
|
# 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
|
58
59
60
61
62
|
# File 'lib/soap/rpc/cgistub.rb', line 58
def meta_vars
{
'HTTP_SOAPACTION' => ENV['HTTP_SOAPACTION']
}
end
|
72
73
74
|
# File 'lib/soap/rpc/cgistub.rb', line 72
def user
ENV['REMOTE_USER']
end
|