Declaration
Channel :: struct {
transport: Http.Http2_Channel; max_active_calls := 128; active_calls: int;}Scheduler-bound RPC scope. Keep its address and TLS configuration stable until all calls and close_channel finish; active call and connection limits bound admission.
Tls :: #import "Extensions/Tls";
main :: () {
config: Tls.Tls_Config;
config.alpn = string.["h2"];
Tls.tls_config_init(*config);
defer Tls.tls_config_free(*config);
channel: Channel;
channel.transport.base_url = "https://localhost:50051";
channel.transport.tls = *config;
defer close_channel(*channel);
}