httputil

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package httputil provides HTTP functions for internal usage only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildParams

func BuildParams(params any, noUrlEncode ...bool) (encodedParamStr string)

BuildParams builds the request string for the http client. The `params` can be type of: string/[]byte/map/struct/*struct.

The optional parameter `noUrlEncode` specifies whether ignore the url encoding for the data.

func HeaderToMap

func HeaderToMap(header http.Header) map[string]any

HeaderToMap coverts request headers to map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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