Mercurial > code > home > repos > light9
diff stubs/cyclone/httpserver.pyi @ 1892:7d5fe19f77a1
stubs
Ignore-this: fe6bf710c383ee06e2f468ad7500d911
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 30 May 2019 08:29:42 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/cyclone/httpserver.pyi Thu May 30 08:29:42 2019 +0000 @@ -0,0 +1,43 @@ +# 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): ...