Gale.Plug.Adapter (Gale v0.1.1)

Copy Markdown View Source

Plug/Phoenix integration surface for HTTP/3 advertising, next to Bandit.

Bandit cannot terminate QUIC. Wire this into a Phoenix endpoint so H1/H2 responses tell clients where H3 lives (typically Caddy on UDP/443):

plug Gale.Plug.AltSvc, host: "example.com", port: 443

child_spec/1 starts nothing QUIC-related; it exists so an endpoint supervisor can list this adapter next to {Bandit, plug: ...} without forking Bandit.

Summary

Functions

RFC 9114 Alt-Svc value for HTTP/3 on host:port.

Keyword options Bandit should keep using for H1/H2.

Functions

alt_svc(host, port \\ 443)

RFC 9114 Alt-Svc value for HTTP/3 on host:port.

bandit_options(opts \\ [])

Keyword options Bandit should keep using for H1/H2.

child_spec(opts)

start_link(opts)