Public Class methods
Public Instance methods
bytesize()
[show source]
# File lib/httpx/plugins/xml.rb 25 def bytesize 26 @raw.to_s.bytesize 27 end
content_type()
[show source]
# File lib/httpx/plugins/xml.rb 20 def content_type 21 charset = @raw.respond_to?(:encoding) && @raw.encoding ? @raw.encoding.to_s.downcase : "utf-8" 22 "application/xml; charset=#{charset}" 23 end