httputil

package
v0.0.0-...-fcd50c7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

包 httputil 提供仅供内部使用的 HTTP 函数。 md5:68a87514ccfd9190

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildParams

func BuildParams(params interface{}, noUrlEncode ...bool) (encodedParamStr string)

BuildParams 为http客户端构建请求字符串。`params`可以是以下类型: 字符串/字节切片/映射/结构体/结构体指针。

可选参数`noUrlEncode`指定是否忽略数据的URL编码。 md5:664ad104f4b3f610

func HeaderToMap

func HeaderToMap(header http.Header) map[string]interface{}

HeaderToMap 将请求头转换为映射。 md5:d7b057a672ffda30

Types

This section is empty.

Jump to

Keyboard shortcuts

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