class HTTP::URI

def http?

Returns:
  • (False) - otherwise
  • (True) - if URI is HTTP
def http?
  HTTP_SCHEME == scheme
end

def https?

Returns:
  • (False) - otherwise
  • (True) - if URI is HTTPS
def https?
  HTTPS_SCHEME == scheme
end