netget-tool 0.3.5

Network protocol stubbing toolkit: ~280 protocol servers and clients whose responses come from an LLM, a script, a static rule or a person.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Binary gRPC-Web binding for the shared owned HTTP/1.1 client.
pub mod actions;
pub struct GrpcWebClient;
impl GrpcWebClient {
    pub async fn connect(
        ctx: crate::protocol::ConnectContext,
    ) -> anyhow::Result<std::net::SocketAddr> {
        crate::client::grpc::http1::HttpClient::connect(
            ctx,
            crate::client::grpc::http1::Binding::GrpcWeb,
        )
        .await
    }
}