lib/puppet/indirector/rest.rb
# Returns the content_type, stripping any appended charset, and the
# body, decompressed if necessary (content-encoding is checked inside
# uncompress_body)
Returns the content_type, stripping any appended charset, and the
body, decompressed if necessary (content-encoding is checked inside
uncompress_body)
Returns the content_type stripping any appended charset and the body decompressed if necessary ( content - encoding is checked inside uncompress_body )
def parse_response(response)
    if response['content-type']
      [ response['content-type'].gsub(/\s*;.*$/,''),
        body = uncompress_body(response) ]
    else
      raise _("No content type in http response; cannot parse")
    end
  end
def parse_response ( response ) if response [ 'content-type' ] [ response [ 'content-type' ] . gsub ( / \s *;.*$ / , '' ) , body = uncompress_body ( response ) ] else raise _ ( "No content type in http response; cannot parse" ) end end
Returns the content_type, stripping any appended charset, and the
body, decompressed if necessary (content-encoding is checked inside
uncompress_body)
Returns the content_type stripping any appended charset and the body decompressed if necessary ( content - encoding is checked inside uncompress_body )
response