MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / AdapterTestResponse

Class AdapterTestResponse

astrbot/dashboard/asgi_runtime.py:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247class AdapterTestResponse:
248 def __init__(self, response: httpx.Response) -> None:
249 self._response = response
250 self.status_code = response.status_code
251 self.headers = AdapterTestHeaders(response.headers)
252 self.data = response.content
253 self.content = response.content
254 self.text = response.text
255
256 async def get_json(self):
257 return self._response.json()
258
259 async def get_data(self):
260 return self._response.content
261
262
263class AdapterTestClient:

Callers 1

requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected