zentao-api / ClientRequestOptions
Interface: ClientRequestOptions
ZentaoClient.request() 的单次请求选项。
Properties
| Property | Type | Description |
|---|---|---|
body? | Record<string, unknown> | JSON 请求体;GET 请求会忽略该字段。 |
insecure? | boolean | 单次请求 TLS 跳过证书验证选项;仅 Node.js 运行时支持。 |
method? | HttpMethod | HTTP 方法,默认 GET。 |
query? | Record<string, string | number | boolean | undefined> | URL 查询参数;undefined 值会被跳过。 |
timeout? | number | 单次请求超时时间,优先级高于全局和客户端默认值。 |