mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Added stub for http.server.BaseHTTPRequestHandler useful undocumented fields (#3285)
This commit is contained in:
committed by
Sebastian Rittau
parent
aaff561ef6
commit
a2834cf24d
@@ -1,7 +1,7 @@
|
||||
# Stubs for http.server (Python 3.4)
|
||||
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Dict, List, Mapping, Optional, Tuple, Union
|
||||
from typing import Any, BinaryIO, ClassVar, Dict, List, Mapping, Optional, Sequence, Tuple, Union
|
||||
import socketserver
|
||||
import email.message
|
||||
|
||||
@@ -36,6 +36,8 @@ class BaseHTTPRequestHandler:
|
||||
protocol_version: str
|
||||
MessageClass: type
|
||||
responses: Mapping[int, Tuple[str, str]]
|
||||
weekdayname: ClassVar[Sequence[str]] = ... # Undocumented
|
||||
monthname: ClassVar[Sequence[Optional[str]]] = ... # Undocumented
|
||||
def __init__(self, request: bytes, client_address: Tuple[str, int],
|
||||
server: socketserver.BaseServer) -> None: ...
|
||||
def handle(self) -> None: ...
|
||||
@@ -58,6 +60,7 @@ class BaseHTTPRequestHandler:
|
||||
def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...
|
||||
def log_date_time_string(self) -> str: ...
|
||||
def address_string(self) -> str: ...
|
||||
def parse_request(self) -> bool: ... # Undocumented
|
||||
|
||||
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
extensions_map: Dict[str, str]
|
||||
|
||||
Reference in New Issue
Block a user