* Keep opened connections for HTTP. * It is actually cache over tuple(schema, host, port) -> connection * with limited number of items. * * Evict least used.
clear cache (and close connections)
Remove connection from cache (without close).
Lookup connection.
put new stream in cache, evict old stream and return it. If nothing evicted return null. Returned(evicted) connection can be closed.
See Implementation
* Keep opened connections for HTTP. * It is actually cache over tuple(schema, host, port) -> connection * with limited number of items. * * Evict least used.