requests.Session.get_adapter

Session.get_adapter(url)[source]

Returns the appropriate connection adapter for the given URL.