Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

RequestOptions

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
export type RequestOptions = {
signal?: AbortSignal;
/** Called once when response headers arrive, including streams and HTTP errors. Does not consume the body. */
onResponse?: (metadata: ResponseMetadata) => void;
/** Override payload retention for this request. Metadata collection is unaffected. */
logPayloads?: boolean;
};