Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat trait to make clients customizable (#459)
* Feat trait to make clients customizable * remove the uneeded Http bound on the tasks and key * Fix incorrect type specification * Remove delete unused module * Change the return value of the request function * Fix return value * Add cliant structure correspondence specifying IsahcClient * Remove unnecessary specification * Fix typo, unnecessary comment out * Fix macro to generate IndexConfig * Fix task_info test * Fix typo * Fix test * Fix settings.rs in example * Change request mod to public * Add stream_request to HttpClient * Add send and sync trait * Change request method calls in setting.rs to use http_client * Change request method calls in client.rs to use http_client * Change request method calls in indexes.rs to use http_client * Change request method calls in dumps.rs to use http_client * Fix async_trait to have Send trait for wasm32 build * Fix async trait in index config and macro code * Fix clippy warning(never used) * Fix cli-app example * Fix test * Add example of using reqwest for http_client * Fix typo * Fix to put underscore on unused variables in example * Fix Default to derive * Fix to arrangement client methods * Change isahc enables optional flag * Change functional flags for code that depends on isahc * Fix cargo check pass in the no-default-features * Fix unused import * Fix formatting * Change disable default-features in the example * Fix format * Add client and index types that can be used without specifying an HTTP Trait when in isahc(default) mode * Remove unused function * Fix to use WebSysClient for wasm * Add prelude * Fix example to use prelude * Fix prelude * Add to README text about custom HttpClient and link to example. * Feat trait to make clients customizable * remove the uneeded Http bound on the tasks and key * Fix incorrect type specification * Remove delete unused module * Change the return value of the request function * Fix return value * Add cliant structure correspondence specifying IsahcClient * Remove unnecessary specification * Fix typo, unnecessary comment out * Fix macro to generate IndexConfig * Fix task_info test * Fix typo * Fix test * Fix settings.rs in example * Change request mod to public * Add stream_request to HttpClient * Add send and sync trait * Change request method calls in setting.rs to use http_client * Change request method calls in client.rs to use http_client * Change request method calls in indexes.rs to use http_client * Change request method calls in dumps.rs to use http_client * Fix async_trait to have Send trait for wasm32 build * Fix async trait in index config and macro code * Fix clippy warning(never used) * Fix cli-app example * Fix test * Add example of using reqwest for http_client * Fix typo * Fix to put underscore on unused variables in example * Fix Default to derive * Fix to arrangement client methods * Change isahc enables optional flag * Change functional flags for code that depends on isahc * Fix cargo check pass in the no-default-features * Fix unused import * Fix formatting * Change disable default-features in the example * Fix format * Add client and index types that can be used without specifying an HTTP Trait when in isahc(default) mode * Remove unused function * Fix to use WebSysClient for wasm * Add prelude * Fix example to use prelude * Fix prelude * Add to README text about custom HttpClient and link to example. * Fix rebase commit * Add support for new functions * merge with main * make the Client and Index uses our IsahcClient by default * fix all doctests * fmt * get rids of the breaking prelude * makes clippy happy * implement serialize myself * make the cargo check --no-default-features works * adds a check in the CI to ensure the no-default-features works forever * update the README with the new example * fix the wasm client * adds a TODO * Update examples/cli-app-with-reqwest/src/main.rs * Update src/client.rs --------- Signed-off-by: shimatar0 <[email protected]> Co-authored-by: Tamo <[email protected]> Co-authored-by: Tamo <[email protected]>
- Loading branch information