|
|
@ -33,7 +33,6 @@ from typing import ( |
|
|
|
ClassVar, |
|
|
|
Coroutine, |
|
|
|
Dict, |
|
|
|
Final, |
|
|
|
Iterable, |
|
|
|
List, |
|
|
|
Optional, |
|
|
@ -159,9 +158,6 @@ aiohttp.hdrs.WEBSOCKET = 'websocket' #type: ignore |
|
|
|
class HTTPClient: |
|
|
|
"""Represents an HTTP client sending HTTP requests to the Discord API.""" |
|
|
|
|
|
|
|
SUCCESS_LOG: Final[ClassVar[str]] = '{method} {url} has received {text}' |
|
|
|
REQUEST_LOG: Final[ClassVar[str]] = '{method} {url} with {json} has returned {status}' |
|
|
|
|
|
|
|
def __init__( |
|
|
|
self, |
|
|
|
connector: Optional[aiohttp.BaseConnector] = None, |
|
|
|