Method: Handsoap::Http::Part#mime_type
- Defined in:
- lib/handsoap/http/part.rb
#mime_type ⇒ Object
Returns the mime-type part of the content-type header
25 26 27 |
# File 'lib/handsoap/http/part.rb', line 25 def mime_type @headers['content-type'].first.match(/^[^;]+/).to_s if @headers['content-type'] end |