Response

Protocols use `Response`s to specify data that is received from a transport.

Decorators
dataclasses.dataclass

Methods

  • __init__(self, request : Request) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      request
      Type
      Request
      Default
      Description

  • __post_init__(self) -> None

  • __handle_done(self, _payload : asyncio.Future[bytes]) -> None

    The callback to be run when the payload `Future` becomes done.

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      _payload
      Type
      asyncio.Future[bytes]
      Default
      Description

      The `Future` object.

Attributes

  • Name
    request
    Type
    Request
    Value

    = None

    Description

Copyright © 2024