Skip to main content

HttpService

Type Alias HttpService 

Source
pub type HttpService = BoxCloneSyncService<Request<Body>, Response<Body>, BoxError>;
Available on non-target_family=wasm only.
Expand description

The service a Client sends requests through, with its type erased: tower’s BoxCloneSyncService.

On WebAssembly (target_family = "wasm") it is a LocalBoxCloneService, which is neither Send nor Sync, like the futures of reqwest’s fetch backend.

Aliased Type§

pub struct HttpService(/* private fields */);