Files @ 1281b4677862
Branch filter:

Location: light9/stubs/cyclone/httpserver.pyi

drewp@bigasterisk.com
dead code
# Stubs for cyclone.httpserver (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from twisted.protocols import basic
from typing import Any, Dict, Optional

class _BadRequestException(Exception): ...

class HTTPConnection(basic.LineReceiver):
    no_keep_alive: bool = ...
    content_length: Any = ...
    request_callback: Any = ...
    xheaders: Any = ...
    def connectionMade(self) -> None: ...
    def connectionLost(self, reason: Any) -> None: ...
    def notifyFinish(self): ...
    def lineReceived(self, line: Any) -> None: ...
    def rawDataReceived(self, data: Any) -> None: ...
    def write(self, chunk: Any) -> None: ...
    def finish(self) -> None: ...

class HTTPRequest:
    method: str = ...
    uri: str = ...
    version: str = ...
    headers: Dict[str, str] = ...
    body: bytes = ...
    remote_ip: str = ...
    protocol: str = ...
    host: str = ...
    files: Any = ...
    connection: HTTPConnection = ...
    arguments: Any = ...
    def __init__(self, method: Any, uri: Any, version: str = ..., headers: Optional[Any] = ..., body: Optional[Any] = ..., remote_ip: Optional[Any] = ..., protocol: Optional[Any] = ..., host: Optional[Any] = ..., files: Optional[Any] = ..., connection: Optional[Any] = ...) -> None: ...
    def supports_http_1_1(self): ...
    @property
    def cookies(self): ...
    def write(self, chunk: Any) -> None: ...
    def finish(self) -> None: ...
    def full_url(self): ...
    def request_time(self): ...
    def notifyFinish(self): ...