Skip to content

zentao-api / ClientRequestOptions

Interface: ClientRequestOptions

ZentaoClient.request() 的单次请求选项。

Properties

PropertyTypeDescription
body?Record<string, unknown>JSON 请求体;GET 请求会忽略该字段。
insecure?boolean单次请求 TLS 跳过证书验证选项;仅 Node.js 运行时支持。
method?HttpMethodHTTP 方法,默认 GET
query?Record<string, string | number | boolean | undefined>URL 查询参数;undefined 值会被跳过。
timeout?number单次请求超时时间,优先级高于全局和客户端默认值。

Released under the MIT License.