ADK for TypeScript: API Reference
    Preparing search index...

    接口:HttpAuth

    用于 HTTP 认证的凭据和元数据。

    interface HttpAuth {
        additionalHeaders?: Record<string, string>;
        credentials: HttpCredentials;
        scheme: string;
    }
    additionalHeaders?: Record<string, string>

    需要包含在请求中的其他 HTTP 头信息。

    credentials: HttpCredentials
    scheme: string

    这是在 HTTP 请求的 `Authorization` 标头中使用的身份验证方案(Authentication scheme)的名称,该方案的定义遵循 RFC7235 标准。所使用的身份验证方案名称必须已在 IANA(Internet Assigned Numbers Authority)的身份验证方案注册表(Authentication Scheme registry)中注册。 示例:`basic`、`bearer`