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

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

Defined Under Namespace

Modules: HostHeader, Request

Class Method Summary collapse

Class Method Details

.example(host: nil) ⇒ Object



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

def self.example(host: nil)
  host ||= Hostname.example
  port = Port.example

  Net::HTTP.new host, port
end