MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/python3/tornado/http1connection.py:773–790  ·  view source on GitHub ↗

:arg stream: an `.IOStream` :arg params: a `.HTTP1ConnectionParameters` or None :arg context: an opaque application-defined object that is accessible as ``connection.context``

(
        self,
        stream: iostream.IOStream,
        params: Optional[HTTP1ConnectionParameters] = None,
        context: Optional[object] = None,
    )

Source from the content-addressed store, hash-verified

771 """An HTTP/1.x server."""
772
773 def __init__(
774 self,
775 stream: iostream.IOStream,
776 params: Optional[HTTP1ConnectionParameters] = None,
777 context: Optional[object] = None,
778 ) -> None:
779 """
780 :arg stream: an `.IOStream`
781 :arg params: a `.HTTP1ConnectionParameters` or None
782 :arg context: an opaque application-defined object that is accessible
783 as ``connection.context``
784 """
785 self.stream = stream
786 if params is None:
787 params = HTTP1ConnectionParameters()
788 self.params = params
789 self.context = context
790 self._serving_future = None # type: Optional[Future[None]]
791
792 async def close(self) -> None:
793 """Closes the connection.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected