Skip to main content

接口: WithResponse<T>

机器翻译译自英文(docs.typesafe.ai)本页 13 段已全部译完

文档索引

在以下地址获取完整的文档索引:https://docs.typesafe.ai/llms.txt 使用此文件可以在进一步探索之前发现所有可用页面。

接口: WithResponse<T>

包含其 HTTP 响应和请求 ID 的解析数据。

类型参数

T

T

属性

data

data: T;

解析后的响应主体。


requestId

requestId: string | undefined;

来自 x-typesafe-request-id 的请求 ID,若不存在则为 undefined。


response

response: Response;

HTTP 响应,其主体已通过解析被消耗。