Class: SOAP::RPC::CGIStub::SOAPStdinRequest
- Inherits:
-
SOAPRequest
- Object
- SOAPRequest
- SOAP::RPC::CGIStub::SOAPStdinRequest
- Defined in:
- lib/action_web_service/soap/rpc/cgistub.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
- #[](var) ⇒ Object
-
#initialize(stream) ⇒ SOAPStdinRequest
constructor
A new instance of SOAPStdinRequest.
- #meta_vars ⇒ Object
Constructor Details
#initialize(stream) ⇒ SOAPStdinRequest
Returns a new instance of SOAPStdinRequest.
42 43 44 45 |
# File 'lib/action_web_service/soap/rpc/cgistub.rb', line 42 def initialize(stream) size = ENV['CONTENT_LENGTH'].to_i || 0 @body = stream.read(size) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
40 41 42 |
# File 'lib/action_web_service/soap/rpc/cgistub.rb', line 40 def body @body end |
Instance Method Details
#[](var) ⇒ Object
47 48 49 |
# File 'lib/action_web_service/soap/rpc/cgistub.rb', line 47 def [](var) ENV[var.gsub(/-/, '_').upcase] end |
#meta_vars ⇒ Object
51 52 53 54 55 |
# File 'lib/action_web_service/soap/rpc/cgistub.rb', line 51 def { 'HTTP_SOAPACTION' => ENV['HTTP_SOAPAction'] } end |