Module: Inferno::DSL::HTTPClient::ClassMethods

Included in:
Entities::TestGroup, Entities::TestSuite
Defined in:
lib/inferno/dsl/http_client.rb

Instance Method Summary collapse

Instance Method Details

#http_client(name = :default, &block) ⇒ void

This method returns an undefined value.

Define a HTTP client to be used by a Runnable.

Parameters:

  • name (Symbol) (defaults to: :default)

    a name used to reference this particular client

  • block

    a block to configure the client

See Also:

  • Documentation for the client configuration DSL


206
207
208
# File 'lib/inferno/dsl/http_client.rb', line 206

def http_client(name = :default, &block)
  http_client_definitions[name] = block
end