💾 Archived View for tris.fyi › pydoc › amethyst.request captured on 2023-01-29 at 03:51:13. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
This module has no docstring.
Connection(server: amethyst.server.Server, peer_addr: str, peer_cert: Optional[bytes] = None)
peer_cert = None
Context(host: str, orig_path: str, path: str, query: Optional[str], conn: amethyst.request.Connection, data: Dict[str, Any] = <factory>)
get_server(self)
handle_connection(self, reader, writer)
dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False) Returns the same class as was passed in, with dunder methods added based on the fields defined in the class. Examines PEP 526 __annotations__ to determine fields. If init is true, an __init__() method is added to the class. If repr is true, a __repr__() method is added. If order is true, rich comparison dunder methods are added. If unsafe_hash is true, a __hash__() method function is added. If frozen is true, fields may not be assigned to after instance creation. If match_args is true, the __match_args__ tuple is added. If kw_only is true, then by default all fields are keyword-only. If slots is true, an __slots__ attribute is added.
field(*, default=<dataclasses._MISSING_TYPE object at 0x7f75e3a86770>, default_factory=<dataclasses._MISSING_TYPE object at 0x7f75e3a86770>, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=<dataclasses._MISSING_TYPE object at 0x7f75e3a86770>) Return an object to identify dataclass fields. default is the default value of the field. default_factory is a 0-argument function called to initialize a field's value. If init is true, the field will be a parameter to the class's __init__() function. If repr is true, the field will be included in the object's repr(). If hash is true, the field will be included in the object's hash(). If compare is true, the field will be used in comparison functions. metadata, if specified, must be a mapping which is stored but not otherwise examined by dataclass. If kw_only is true, the field will become a keyword-only parameter to __init__(). It is an error to specify both default and default_factory.
Any = typing.Any Special type indicating an unconstrained type. - Any is compatible with every type. - Any assumed to have all methods. - All values assumed to be instances of Any. Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance or class checks.
Dict = typing.Dict A generic version of dict.
Optional = typing.Optional Optional type. Optional[X] is equivalent to Union[X, None].