Skip to content

feat(net): hyper backend transport — hyper_leaf + build() + TokioTimer (hyper-backend slice, PR A) #89

Description

@NotAProfDev

PR A (transport) of the net-http hyper-backend slice — the runtime/TLS half deferred by the stack() assembly (#88).

Create the new oath-adapter-net-http-hyper crate (the first to own hyper/tokio/rustls) delivering:

  • TokioTimer — the tokio-backed Timer.
  • The pooled TLS leaf: HyperLeaf/hyper_leaf/ConnConfig over hyper-util + rustls (aws-lc-rs, webpki-roots), ALPN h2+http/1.1, connect_timeout + nodelay.
  • The hyper → HttpError anti-corruption mapping (HyperBody = MapErr<Incoming, …>).
  • build() = stack(hyper_leaf(conn), …) — a one-line delegation to the feat(net): stack() assembly + HttpConfig (Slice 2) #88 assembly.

Response bodies stream; leaf-side buffering follows in PR B.

Design: docs/superpowers/specs/2026-07-05-net-http-hyper-backend-design.md
Plan: docs/superpowers/plans/2026-07-05-net-http-hyper-backend-pr-a.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions