Method: Patron::Response#charset

Defined in:
lib/patron/response.rb

#charsetString (readonly)

Returns the recognized name of the charset for the response. The name is not checked to be a valid charset name, just stored. To check the charset for validity, use #body_decodable?.

Returns:

  • (String)

    the recognized name of the charset for the response. The name is not checked to be a valid charset name, just stored. To check the charset for validity, use #body_decodable?



29
30
31
# File 'lib/patron/response.rb', line 29

def charset
  @charset
end