-
Notifications
You must be signed in to change notification settings - Fork 0
Home
面向 Windows 内核驱动的纯内核态 HTTP/HTTPS/WebSocket/SSE 客户端库。
传输主路径为 WSK,密码学主路径为内核态 CNG/BCrypt;不依赖 WinHTTP、WinINet 或 SChannel。公共 API 命名空间:wknet::http、wknet::websocket、wknet::sse、wknet::crypto、wknet::codec。
wknet 是内核态 HTTP/HTTPS/WebSocket/SSE 客户端。面向需要在驱动里发起请求、并希望安全默认值明确的场景;HTTP/1.1、HTTP/2、HTTP/3 共用同一产品 API。
当前不提供 HTTP 服务端或入站 request parser,也不内置系统 CA。QUIC 迁移、WebTransport 等能力尚未支持,详见 能力边界。
- 同步路径在
PASSIVE_LEVEL调用;公共句柄为堆对象,Create 与 Close / Release 成对使用。 - 信任锚、CA 包、pin、撤销证据由调用方提供;主机名校验不回退 CN。
- Trace 默认
Off;HTTP/3 默认Auto,从已认证响应的 Alt-Svc 学习。
A pure kernel-mode HTTP/HTTPS/WebSocket/SSE client library for Windows drivers.
Transport main path is WSK; cryptography main path is kernel CNG/BCrypt. No WinHTTP, WinINet, or SChannel. Public API namespaces: wknet::http, wknet::websocket, wknet::sse, wknet::crypto, wknet::codec.
wknet is a kernel-mode HTTP/HTTPS/WebSocket/SSE client. It is for drivers that issue requests and want explicit security defaults, with one product API across HTTP/1.1, HTTP/2, and HTTP/3.
It does not provide an HTTP server or inbound request parser, and it does not ship a system CA store. Features such as QUIC migration and WebTransport are not supported today; see the capability matrix.
- Call sync paths at
PASSIVE_LEVEL. Public handles are heap objects; pair Create with Close / Release. - Trust anchors, CA bundles, pins, and revocation evidence are caller-supplied. Hostname verification does not fall back to CN.
- Trace defaults to
Off. HTTP/3 defaults toAutoand learns from authenticated Alt-Svc.
-
Build — produce
wknetlib.lib - First request — minimal GET / POST
- Integration notes — link, lifetime, trust
- Capability matrix — support scope and limits
Recipes: Cookbook. Signatures: API overview.
-
开始使用 / Get Started
-
概念与行为 / Concepts
-
协议指南 / Protocols
-
API 参考 / API Reference
-
贡献与项目 / Contribute