Behaviours: gen_server.
| code_change/3 | Handle code upgrades. |
| handle_call/3 | Handle synchronous calls (e.g., send_response). |
| handle_cast/2 | Handle asynchronous messages (e.g., stream data). |
| handle_info/2 | Handle other messages (e.g., timeouts). |
| handle_stream_data/3 | Handle incoming stream data. |
| init/1 | Initialize the server state. |
| send_response/5 | Send an HTTP/3 response. |
| start_link/1 | Start the HTTP/3 server. |
| terminate/2 | Clean up on termination. |
code_change(OldVsn, State, Extra) -> any()
Handle code upgrades.
handle_call(Request, From, State) -> any()
Handle synchronous calls (e.g., send_response).
handle_cast(Msg, State) -> any()
Handle asynchronous messages (e.g., stream data).
handle_info(Info, State) -> any()
Handle other messages (e.g., timeouts).
handle_stream_data(Pid::pid(), StreamID::integer(), Data::binary()) -> ok
Pid: Server PID.
StreamID: QUIC stream ID.
Data: Binary data received.
Handle incoming stream data.
init(Options) -> any()
Initialize the server state.
send_response(Pid::pid(), StreamID::integer(), StatusCode::integer(), Headers::[{binary(), binary()}], Body::binary()) -> ok
Pid: Server PID.
StreamID: QUIC stream ID.
StatusCode: HTTP status code.
Headers: List of {binary(), binary()} tuples.
Body: Binary response body.
Send an HTTP/3 response.
start_link(Options::map()) -> {ok, pid()} | {error, term()}
Options: Map containing connection PID and routes.
Start the HTTP/3 server.
terminate(Reason, State) -> any()
Clean up on termination.
Generated by EDoc