urlx

package module
v0.0.0-...-8f42c52 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HeaderContentType = "Content-Type"
	ParamCharset      = "charset"
)

Variables

View Source
var AutoCharset = Charset("auto")

AutoCharset 将响应解码成UTF-8

Functions

This section is empty.

Types

type Process

type Process = func(resp *http.Response) error // 响应处理器

type ProcessMw

type ProcessMw = func(next Process) Process

func Charset

func Charset(charset string) ProcessMw

Charset 指定响应的编码,auto 或者空则通过 Content-Type 自动判断

Jump to

Keyboard shortcuts

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