Update
This commit is contained in:
@@ -6,7 +6,7 @@ from urllib.parse import urlparse
|
||||
from client.httpclient import FORMAT, HTTPClient
|
||||
from httplib import parser
|
||||
from httplib.exceptions import InvalidResponse, InvalidStatusLine, UnsupportedEncoding
|
||||
from httplib.message import Message
|
||||
from httplib.message import ClientMessage as Message
|
||||
from httplib.retriever import PreambleRetriever
|
||||
|
||||
sockets: Dict[str, HTTPClient] = {}
|
||||
@@ -29,12 +29,12 @@ class AbstractCommand(ABC):
|
||||
uri: str
|
||||
host: str
|
||||
path: str
|
||||
port: Tuple[str, int]
|
||||
port: int
|
||||
|
||||
def __init__(self, uri: str, port):
|
||||
self.uri = uri
|
||||
self.host, _, self.path = parser.parse_uri(uri)
|
||||
self.port = port
|
||||
self.port = int(port)
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
|
Reference in New Issue
Block a user