Module: EventStore::HTTP::Controls::NetHTTP::HostHeader

Defined in:
lib/event_store/http/controls/net_http/host_header.rb

Defined Under Namespace

Modules: Hostname, IPAddress, Other

Class Method Summary collapse

Class Method Details

.example(address = nil) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/event_store/http/controls/net_http/host_header.rb', line 6

def self.example(address=nil)
  return IPAddress.example if address.nil?

  port = Port.example

  "#{address}:#{port}"
end