Skip to content

同步 tls-client v1.16.0 CFFI 模型定义并保留 CookieJar API 兼容 - #15

Draft
Soar360 with Copilot wants to merge 3 commits into
mainfrom
copilot/upgrade-to-v1-16-0
Draft

Soar360 with Copilot wants to merge 3 commits into
mainfrom
copilot/upgrade-to-v1-16-0

Conversation

Copilot AI commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

上游 bogdanfinn/tls-client 已升级到 v1.16.0,当前 C# 模型与 cffi_src/types.go / factory.go 的输入字段不完全一致,导致部分新能力无法透传。此 PR 对齐新增/变更字段,并在 .NET API 层保留向后兼容入口。

  • RequestInput 对齐 v1.16.0 新参数

    • 新增 disableSessionTickets、withProtocolRacing
    • 将 cookie jar 开关字段对齐为 withCustomCookieJar
  • CustomTlsClient 扩展 HTTP/3 与 TLS 配置面

    • 新增 h3Settings、h3SettingsOrder、h3PseudoHeaderOrder
    • 新增 streamId、h3PriorityParam、h3SendGreaseFrames、allowHttp
    • 新增 trustAnchorsPayload
  • 兼容性处理(避免破坏现有调用方)

    • 保留 WithDefaultCookieJar 作为兼容别名(不参与序列化),映射到 WithCustomCookieJar
public bool WithCustomCookieJar { get; set; }

[Obsolete("Use WithCustomCookieJar instead.")]
[JsonIgnore]
public bool WithDefaultCookieJar
{
    get => WithCustomCookieJar;
    set => WithCustomCookieJar = value;
}

Copilot AI linked an issue Sep 12, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits September 12, 2026 08:04
Co-authored-by: Soar360 <15421284+Soar360@users.noreply.github.com>
Co-authored-by: Soar360 <15421284+Soar360@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade dependency version to v1.16.0 同步 tls-client v1.16.0 CFFI 模型定义并保留 CookieJar API 兼容 Sep 12, 2026
Copilot AI requested a review from Soar360 September 12, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

升级上游版本至 v1.16.0

2 participants