class Request::Protocol

Constants

ALL
HTTP
HTTPS
INDEX

Attributes

default_port[R]

Return default port

@return [Fixnum]

@api private

name[R]

Return name

@return [String]

@api private

Public Class Methods

get(name) click to toggle source

Return protocol for name

@param [String] name

@return [Protocol]

@api private

# File lib/request/protocol.rb, line 42
def self.get(name)
  INDEX.fetch(name)
end