<gh_stars>0
# SPDX-License-Identifier: MIT
# Copyright (c) 2022 <NAME> <https://github.com/AndrielFR>

import logging

import httpx

logger = logging.getLogger(__name__)

http = httpx.AsyncClient(
    http2=True,
    timeout=httpx.Timeout(15.0, connect=60.0),
    transport=httpx.AsyncHTTPTransport(retries=3),
    follow_redirects=True,
)


async def close_http():
    await http.aclose()
    logger.debug("HTTP closed")

# SPDX-License-Identifier: MIT
# Copyright (c) 2022 <NAME> <https://github.com/AndrielFR>

import logging

import httpx

logger = logging.getLogger(__name__)

http = httpx.AsyncClient(
    http2=True,
    timeout=httpx.Timeout(15.0, connect=60.0),
    transport=httpx.AsyncHTTPTransport(retries=3),
    follow_redirects=True,
)


async def close_http():
    await http.aclose()
    logger.debug("HTTP closed")
# SPDX-License-Identifier: MIT # Copyright (c) 2022 <NAME> <https://github.com/AndrielFR>