Method: Handsoap::Http::Part#mime_type

Defined in:
lib/handsoap/http/part.rb

#mime_typeObject

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