network

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

* @Author: 2Kil * @Date: 2025-09-28 13:46:43 * @LastEditors: 2Kil * @LastEditTime: 2025-12-15 11:44:30 * @Description:网络相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetCurl

func NetCurl(curlBash string) (int, string, error)

NetCurl 执行一个类似于curl命令的网络请求。 它是 NetProxyCurl 的一个简化版本,不使用代理。

func NetParseCurlComd

func NetParseCurlComd(curlCmd string) (string, string, http.Header, []byte, error)

NetParseCurlComd 解析一个curl命令字符串,提取出请求方法、URL、请求头和请求体。 这个函数增强了对不同引号和参数格式的兼容性。

func NetProxyCurl

func NetProxyCurl(proxy, curlBash string) (int, string, error)

NetProxyCurl 使用指定的代理执行一个类似于curl命令的网络请求。 它解析curl命令字符串,通过代理发送请求,并返回HTTP状态码和响应体。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL