sunnyhttp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoPost

func DoPost(ctx context.Context, ph []ParamHttp, url string) (res *http.Response, err error)

@Param ph []ParamHttp true 参数 @Param url string true 在配置文件里面的url地址 @Return res *http.Response, err error

Types

type ParamHttp

type ParamHttp struct {
	BFile     bool   `json:"bfile"`     //是否是文件
	Fieldname string `json:"fieldname"` //传输参数名
	Name      string `json:"name"`      //名字
	Value     string `json:"value"`     //值
	//File      multipart.File `json:"file"`
	File io.Reader `json:"file"`
}

ParamHttp 请求参数

func (*ParamHttp) String

func (this *ParamHttp) String() (result string)

String toString

Jump to

Keyboard shortcuts

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