Class: SOAP::StreamHandler
- Defined in:
- lib/action_web_service/soap/streamHandler.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ConnectionData
Constant Summary collapse
- RUBY_VERSION_STRING =
"ruby #{ RUBY_VERSION } (#{ RUBY_RELEASE_DATE }) [#{ RUBY_PLATFORM }]"
Class Method Summary collapse
Class Method Details
.create_media_type(charset) ⇒ Object
52 53 54 |
# File 'lib/action_web_service/soap/streamHandler.rb', line 52 def self.create_media_type(charset) "#{ MediaType }; charset=#{ charset }" end |
.parse_media_type(str) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/action_web_service/soap/streamHandler.rb', line 43 def self.parse_media_type(str) if /^#{ MediaType }(?:\s*;\s*charset=([^"]+|"[^"]+"))?$/i !~ str return nil end charset = $1 charset.gsub!(/"/, '') if charset charset || 'us-ascii' end |