masque_ip_h1_server_session (masque v0.7.0)

View Source

Per-tunnel server session for CONNECT-IP (RFC 9484) over HTTP/1.1.

Spawned by masque_h1_server after a GET with Upgrade: connect-ip passes validation. The session calls h1:accept_upgrade/3 in init/1 so socket ownership lands on this gen_server. After the 101 response, the raw TLS socket becomes the tunnel; datagrams and control capsules are framed via RFC 9297 capsules on that socket.

Wire format is identical to the h2 / h3 paths, so masque_ip_capsule + masque_datagram are reused unchanged; only the transport plumbing differs.

Summary

Functions

code_change(OldVsn, S, Extra)

handle_call(Req, From, S)

handle_cast(Msg, S)

handle_info(Msg, State)

init(_)

start_link(Args)

-spec start_link(map()) -> {ok, pid()} | ignore | {error, term()}.

terminate(Reason, State)