Skip to main content

Module http

Module http 

Source
Expand description

Native HTTP thin shell over the shared host client.

§P1.5 出站横切层装配点

HTTP 执行 / 鉴权头注入 / 错误分类的实现全在 helix-driver-host(native + FFI 共享, ADR-007)。本 native 壳只做装配:

  • 裸出站:NativeHttp::with_config / NativeHttp::from_shared(无横切,host-cli / 测试)。
  • 带横切:NativeHttp::with_crosscut 把 SharedHttpClient 包进 CrossCuttingHttp(鉴权意图→token 注入 + 业务 outcome observer + traceparent 透传)。装配点就绪,泵接线待 M2:当前 host-cli 走裸 Plain 出站,横切语义未生效;M2 host 装配层(host-cli / Tauri shell) 登录态就绪后改调 with_crosscut 接横切层(drift-review dbe1b74..7e9f3ca finding①)。

Structs§

NativeHttp
Compatibility wrapper for PC/Tauri code.

Functions§

configure_wdio_fail_next_post_create
Arm or clear the coarse-real candidate’s next /posts/create failure.