Skip to content

feat(net): AuthSource + Auth/SetHeaders layers + Guarded body (Slice 0, PR 3) #64

Description

@NotAProfDev

Slice 0 PR 3 of the net-http construction surface (spec: docs/superpowers/specs/2026-06-30-net-http-construction-surface-design.md, plan: docs/superpowers/plans/2026-07-02-net-http-auth-guarded.md):

  • AuthSource trait (RPITIT, Send-bounded) + NoAuth + the Auth layer (innermost credential stamping) + SetHeaders (static defaults outside Auth, dynamic wins)
  • Guarded<B> permit-carrying response body over async-lock (released at the earlier of stream-end or drop; forwards is_end_stream/size_hint)
  • ADR-0034 recording the construction-surface decisions and the ADR-0030/0031 amendments

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