Struct prost_twirp::HyperClient
source · pub struct HyperClient {
pub client: Client<HttpConnector>,
pub root_url: String,
}
Expand description
A wrapper for a hyper client
Fields§
§client: Client<HttpConnector>
The hyper client
root_url: String
The root URL without any path attached
Implementations§
source§impl HyperClient
impl HyperClient
sourcepub fn new(client: Client<HttpConnector>, root_url: &str) -> HyperClient
pub fn new(client: Client<HttpConnector>, root_url: &str) -> HyperClient
Create a new client wrapper for the given client and root using protobuf