Skip to main content

Module xhttp

Module xhttp 

Source
Expand description

xhttp - HTTP 客户端模块

基于 reqwest 封装,提供全局 HTTP 客户端和便捷请求方法。

Re-exports§

pub use client::build_client;
pub use client::c;
pub use client::delete;
pub use client::get;
pub use client::head;
pub use client::patch;
pub use client::post;
pub use client::put;
pub use config::XHttpConfig;

Modules§

client
xhttp 对外 API
config
xhttp 配置结构体
init
xhttp 初始化逻辑

Functions§

register_hook
注册 HTTP 客户端 Hook(幂等,多次调用只注册一次)