postRequest

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Post请求异步封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	// contains filtered or unexported fields
}

func New

func New(url string, params map[string]string, data []byte, duration time.Duration, callback func(data []byte, statusCode int, err error)) (*Request, error)

发起一个post请求,返回请求对象

func (*Request) Release

func (r *Request) Release()

释放请求对象,不管返回结果

Jump to

Keyboard shortcuts

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