0x676e67
V2EX  ›  Rust

Rust HTTP Client, Golang tls-client/utls 的完美替代品

  •  1
     
  •   0x676e67 · Feb 8, 2025 · 2912 views
    This topic created in 483 days ago, the information mentioned may be changed or developed.

    golang tls-client/utls 的完美替代品

    Client 是基于 reqwest 的分支,修复了 HTTP 版本协商问题,并增强了对 WebSocket ( HTTP1/HTTP2 )的支持,同时优化了常用 API 和连接池的性能。

    1. Features
    • 完美模仿 Chrome/Safari/Firefox 的 TLS/HTTP2 指纹配置。

    • TLS 后端使用 BoringSSL ,该分支像 Golang utls 一样访问低级 TLS 配置功能,同时避免了 utls 的致命缺陷:utls issue #274

    • HTTP2 后端在原 h2 分支基础上实现了对低级 Priority/Headers frame 及 pseudo-header 排列的访问。

    1. Repository
    2 replies    2025-02-09 18:35:29 +08:00
    junnplus
        1
    junnplus  
       Feb 9, 2025
    挺好的,但是为啥不给原项目提 pr ,自己维护成本太高了,后面不维护也说不准
    0x676e67
        2
    0x676e67  
    OP
       Feb 9, 2025
    @junnplus 我自己维护已经两年了,项目相当 hack ,给原项目 PR 是不可能的,说服上游不知得猴年马月。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    ♥ Do have faith in what you're doing.