关闭 HTTP 会话
(self)
| 192 | return await resp.json() |
| 193 | |
| 194 | async def close(self): |
| 195 | """关闭 HTTP 会话""" |
| 196 | if self._session and not self._session.closed: |
| 197 | await self._session.close() |
| 198 | |
| 199 | async def __aenter__(self): |
| 200 | """支持 async with 语法""" |
no outgoing calls
no test coverage detected