masque_tcp_client_session (masque v0.7.0)

View Source

Client-side MASQUE CONNECT-TCP session.

TCP data travels as raw bytes on the HTTP request/response stream body - no datagrams, no context-IDs, no capsule wrapping for the base case. Stream END_STREAM = TCP FIN.

Supports both HTTP/3 (quic_h3) and HTTP/2 (h2) as the outer transport, selected by transport => h3 | h2 in opts.

Summary

Functions

callback_mode()

closing(Event, Msg, Data)

code_change(OldVsn, State, Data, Extra)

connecting(_, Msg, Data)

info(Pid)

init(_)

open(_, Msg, Data)

recv(Pid, Timeout)

send(Pid, Data)

send_capsule(Pid, Type, Value)

set_mode(Pid, Mode)

start(Target, Opts, Owner)

start_link(Target, Opts, Owner)

stop(Pid)

terminate(Reason, State, Data)