http

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, params ...any) ([]byte, error)

Get HTTP GET请求

Types

type Header = httpclient.H

type Method

type Method string

type Query

type Query = httpclient.H

type ResponseHeader

type ResponseHeader struct {
	ContentEncoding string `header:"Content-Encoding"`
}

ResponseHeader 用于解析 服务端 返回的http header

type ResponseMiddler

type ResponseMiddler struct{}

ResponseMiddler response拦截器修改示例

func (*ResponseMiddler) ModifyResponse

func (d *ResponseMiddler) ModifyResponse(response *http.Response) error

Jump to

Keyboard shortcuts

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