mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-30 20:34:40 +01:00
misc
This commit is contained in:
parent
c88909ae47
commit
a31b990f46
1 changed files with 1 additions and 4 deletions
|
@ -7,7 +7,6 @@ import os
|
||||||
import random
|
import random
|
||||||
import ssl
|
import ssl
|
||||||
import threading
|
import threading
|
||||||
import time
|
|
||||||
from http.server import BaseHTTPRequestHandler
|
from http.server import BaseHTTPRequestHandler
|
||||||
from socketserver import BaseRequestHandler, ThreadingTCPServer
|
from socketserver import BaseRequestHandler, ThreadingTCPServer
|
||||||
|
|
||||||
|
@ -255,9 +254,7 @@ class HTTPProxyTestContext(abc.ABC):
|
||||||
REQUEST_PROTO = None
|
REQUEST_PROTO = None
|
||||||
|
|
||||||
def http_server(self, server_class, *args, **kwargs):
|
def http_server(self, server_class, *args, **kwargs):
|
||||||
server = proxy_server(server_class, self.REQUEST_HANDLER_CLASS, *args, **kwargs)
|
return proxy_server(server_class, self.REQUEST_HANDLER_CLASS, *args, **kwargs)
|
||||||
time.sleep(1)
|
|
||||||
return server
|
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def proxy_info_request(self, handler, target_domain=None, target_port=None, **req_kwargs) -> dict:
|
def proxy_info_request(self, handler, target_domain=None, target_port=None, **req_kwargs) -> dict:
|
||||||
|
|
Loading…
Add table
Reference in a new issue