lib/msidp/endpoint.rb
# Validate a HTTP response supposed to have the JSON body.
Validate a HTTP response supposed to have the JSON body.
Validate a HTTP response supposed to have the JSON body .
def validate_json_response(res)
      raise Error, res unless res.is_a? Net::HTTPSuccess
      raise Error, res unless res.content_type&.start_with? 'application/json'
      res
    end
def validate_json_response ( res ) raise Error , res unless res . is_a? Net :: HTTPSuccess raise Error , res unless res . content_type &. start_with? 'application/json' res end
Validate a HTTP response supposed to have the JSON body.
Validate a HTTP response supposed to have the JSON body .
res
<not_specific>