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) ⇒ Object

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


201
202
203
# File 'lib/inferno/dsl/http_client.rb', line 201

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