Method: Excon::Utils#port_string
- Defined in:
- lib/excon/utils.rb
#port_string(datum) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/excon/utils.rb', line 27 def port_string(datum) if datum[:port].nil? || (datum[:omit_default_port] && ((datum[:scheme].casecmp('http') == 0 && datum[:port] == 80) || (datum[:scheme].casecmp('https') == 0 && datum[:port] == 443))) '' else ':' << datum[:port].to_s end end |