Skip to content

Opt KAS requests into HTTP/3#42

Merged
arkavo-com merged 1 commit into
mainfrom
http3-arkavo-endpoints
Jun 22, 2026
Merged

Opt KAS requests into HTTP/3#42
arkavo-com merged 1 commit into
mainfrom
http3-arkavo-endpoints

Conversation

@arkavo-com

Copy link
Copy Markdown
Contributor

Summary

Opt KAS requests into HTTP/3 on the first hop.

assumesHTTP3Capable is set on all three KASRewrapClient request sites — rewrapNanoTDF, rewrapTDF, and the KAS public-key fetch. The KAS endpoints (platform.arkavo.net, kas.arkavo.net) advertise alt-svc: h3=":443", but a normal request starts on HTTP/2 and only upgrades a later connection. This flag lets the very first request negotiate HTTP/3; URLSession falls back to HTTP/2 automatically when a server is not h3-capable.

Note: assumesHTTP3Capable is a property on URLRequest (macOS 11.3+), not URLSessionConfiguration.

Testing

  • swift build
  • swift test --filter KASRewrapClient21/21 passed
  • Runtime probe against platform.arkavo.net: URLSessionTaskMetrics.networkProtocolName == "h3" with the flag set (h2 without).

🤖 Generated with Claude Code

Set assumesHTTP3Capable on all three KASRewrapClient request sites
(rewrapNanoTDF, rewrapTDF, public-key fetch). The KAS advertises
alt-svc: h3=":443", so this negotiates HTTP/3 on the first hop instead of
starting on HTTP/2; URLSession falls back to HTTP/2 for non-h3 servers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@arkavo-com arkavo-com marked this pull request as ready for review June 22, 2026 00:29
@arkavo-com arkavo-com merged commit c49ed1f into main Jun 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant