Method: EventStore::HTTP::Controls::NetHTTP::HostHeader.example

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

.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