Skip to main content

netget/client/grpc_web/
mod.rs

1//! Binary gRPC-Web binding for the shared owned HTTP/1.1 client.
2pub mod actions;
3pub struct GrpcWebClient;
4impl GrpcWebClient {
5    pub async fn connect(
6        ctx: crate::protocol::ConnectContext,
7    ) -> anyhow::Result<std::net::SocketAddr> {
8        crate::client::grpc::http1::HttpClient::connect(
9            ctx,
10            crate::client::grpc::http1::Binding::GrpcWeb,
11        )
12        .await
13    }
14}