Represents a connection with a client
| 43 | |
| 44 | @dataclass |
| 45 | class Connection(Generic[_Carrier]): |
| 46 | """Represents a connection with a client""" |
| 47 | |
| 48 | scope: MutableMapping[str, Any] |
| 49 | """An ASGI scope or WSGI environment dictionary""" |
| 50 | |
| 51 | location: Location |
| 52 | """The current location (URL)""" |
| 53 | |
| 54 | carrier: _Carrier |
| 55 | """How the connection is mediated. For example, a request or websocket. |
| 56 | |
| 57 | This typically depends on the backend implementation. |
| 58 | """ |
| 59 | |
| 60 | |
| 61 | @dataclass |
no outgoing calls
no test coverage detected