class HTTP::URI
def http?
-
(False)
- otherwise -
(True)
- if URI is HTTP
def http? HTTP_SCHEME == scheme end
def https?
-
(False)
- otherwise -
(True)
- if URI is HTTPS
def https? HTTPS_SCHEME == scheme end
(False)
- otherwise
(True)
- if URI is HTTP
def http? HTTP_SCHEME == scheme end
(False)
- otherwise
(True)
- if URI is HTTPS
def https? HTTPS_SCHEME == scheme end