class Capybara::SessionConfig

def app_host=(url)

def app_host=(url)
  raise ArgumentError, "Capybara.app_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." if url && url !~ URI::DEFAULT_PARSER.make_regexp
  @app_host = url
end

def default_host=(url)

def default_host=(url)
  raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}." if url && url !~ URI::DEFAULT_PARSER.make_regexp
  @default_host = url
end

def initialize_copy(other)

def initialize_copy(other)
  super
  @server_errors = @server_errors.dup
end

def server_errors=(errors)

def server_errors=(errors)
  (@server_errors ||= []).replace(errors.dup)
end

def server_host

Returns:
  • (String) - The IP address bound by default server
def server_host
  @server_host || '127.0.0.1'
end