https

package
v0.0.0-...-f35e637 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Value  string
	IsFile bool
}

type HTTPOpt

type HTTPOpt struct {
	Engine    http.Handler
	Handler   http.HandlerFunc
	Method    string
	Url       string
	Header    map[string]string
	Cookies   []*http.Cookie
	Body      io.Reader
	Query     map[string][]string
	JSON      map[string]interface{}
	MultiForm map[string]Field
	// contains filtered or unexported fields
}

type HTTPRes

type HTTPRes struct {
	Code    int
	Header  map[string][]string
	Body    string
	Cookies []*http.Cookie
}

func DoReq

func DoReq(opt *HTTPOpt) (HTTPRes, error)

func (*HTTPRes) GJson

func (r *HTTPRes) GJson(key string) gjson.Result

Jump to

Keyboard shortcuts

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