module HTTP::Chainable
def persistent(host)
-
(Object)
- result of last expression in the block -
(HTTP::Client)
- Persistent client
Other tags:
- Yieldparam: client - Persistent client
Overloads:
-
persistent(host, &block)
-
persistent(host)
Raises:
-
(Request::Error)
- if Host is invalid
Parameters:
-
host
(String
) --
def persistent(host) p_client = branch default_options.with_persistent host return p_client unless block_given? yield p_client ensure p_client.close end