Method: CF::UAA::Http#set_request_handler

Defined in:
lib/uaa/http.rb

#set_request_handler(&blk) ⇒ nil

Sets a handler for outgoing http requests. If no handler is set, an internal cache of net/http connections is used. Arguments to the handler are url, method, body, headers.

Parameters:

  • blk (Proc)

    handler block

Returns:

  • (nil)


64
# File 'lib/uaa/http.rb', line 64

def set_request_handler(&blk) @req_handler = blk; nil end