httptestutil

package
v0.0.0-...-179e57f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* @Description: * @Author: gphper * @Date: 2022-03-31 20:43:41

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(uri string, router *gin.Engine) []byte

Get 请求方法

func PostForm

func PostForm(uri string, router *gin.Engine, options OptionValue) (body []byte, cookies []*http.Cookie)

PostForm 根据特定请求uri和参数param,以表单形式传递参数,发起post请求返回响应

Types

type OptionValue

type OptionValue struct {
	Param   url.Values
	Cookies []*http.Cookie
}

Jump to

Keyboard shortcuts

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