hst

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PSet = &gen.ParamSet{}

初始化载荷发生器。

Functions

func NewHttpST

func NewHttpST(url string, method string,
	headers map[string]string, body []byte) lg.Caller

Types

type HttpST

type HttpST struct {
	Url    string
	Method string
	Header map[string]string
	Body   []byte
}

func (*HttpST) BuildReq

func (h *HttpST) BuildReq() lg.RawReq

func (*HttpST) Call

func (h *HttpST) Call(req []byte, timeoutNS time.Duration) ([]byte, error)

func (*HttpST) CheckResp

func (h *HttpST) CheckResp(rawReq lg.RawReq, rawResp lg.RawResp) *lg.CallResult

Jump to

Keyboard shortcuts

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