mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-07-31 21:29:29 +08:00
feat: [RustHTTP] DNS Host Map
This commit is contained in:
@ -36,10 +36,14 @@ pub fn set_default_header(headers: HashMap<String, String>) {
|
||||
pub async fn fetch(method: MyMethod,
|
||||
url: String,
|
||||
headers: Option<HashMap<String, String>>,
|
||||
input_data: Option<Vec<u8>>) -> anyhow::Result<RustHttpResponse> {
|
||||
http_package::fetch(_my_method_to_hyper_method(method), url, headers, input_data).await
|
||||
input_data: Option<Vec<u8>>, with_ip_address: Option<String>) -> anyhow::Result<RustHttpResponse> {
|
||||
http_package::fetch(_my_method_to_hyper_method(method), url, headers, input_data, with_ip_address).await
|
||||
}
|
||||
|
||||
pub async fn dns_lookup_txt(host: String) -> anyhow::Result<Vec<String>> {
|
||||
http_package::dns_lookup_txt(host).await
|
||||
}
|
||||
|
||||
pub async fn dns_lookup_ips(host: String) -> anyhow::Result<Vec<String>> {
|
||||
http_package::dns_lookup_ips(host).await
|
||||
}
|
Reference in New Issue
Block a user