def send_request(request, use_ssl: false)
      req = parse_http_request(request)
      req['uri'].scheme = 'https' if use_ssl
      send_uri(req['uri'],
               method: req['method'],
               headers: req['headers'],
               body: req['body'])
    end
def send_request(request, use_ssl: false)
      req = parse_http_request(request)
      req['uri'].scheme = 'https' if use_ssl
      send_uri(req['uri'],
               method: req['method'],
               headers: req['headers'],
               body: req['body'])
    end
Parse a raw HTTP request as a string,
 then send the requested URL and HTTP headers to #send_uri

 @param request [String] Raw HTTP request
 @param use_ssl [Boolean] Connect using SSL/TLS

 @return [Hash] HTTP response hash (version, code, message, headers, body)