mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
17 lines
684 B
Python
17 lines
684 B
Python
# Stubs for SimpleHTTPServer (Python 2)
|
|
|
|
from typing import Any, AnyStr, IO, Mapping, Optional, Union
|
|
import BaseHTTPServer
|
|
from StringIO import StringIO
|
|
|
|
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|
server_version: str
|
|
def do_GET(self) -> None: ...
|
|
def do_HEAD(self) -> None: ...
|
|
def send_head(self) -> Optional[IO[str]]: ...
|
|
def list_directory(self, path: Union[str, unicode]) -> Optional[StringIO]: ...
|
|
def translate_path(self, path: AnyStr) -> AnyStr: ...
|
|
def copyfile(self, source: IO[AnyStr], outputfile: IO[AnyStr]): ...
|
|
def guess_type(self, path: Union[str, unicode]) -> str: ...
|
|
extensions_map: Mapping[str, str]
|