Skip to main content

request

Function request 

Source
async fn request(
    method: Method,
    path: &str,
    rest_url: Option<&str>,
    api_key: Option<&str>,
    timeout_secs: u64,
) -> Result<String>
Expand description

共用的 HTTP 请求构造 + body 拉取,返回 body 字符串(已校验 status success)。