module EventStore::HTTP::Controls::NetHTTP

Public Class Methods

example(host: nil) click to toggle source
# 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