In order to leverage HTTP caching, the very same HTTP client instance must be reused across calls. This PR uses a memoized client function to only ever create a client once and then return the same instance over and over (which seems the original intent of the code).
Previous behavior is preserved through the base client* function. Docstrings are provided to properly distinguish between the two flavors.
In order to leverage HTTP caching, the very same HTTP client instance must be reused across calls. This PR uses a memoized
client
function to only ever create a client once and then return the same instance over and over (which seems the original intent of the code).Previous behavior is preserved through the base
client*
function. Docstrings are provided to properly distinguish between the two flavors.