hc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resp

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

func Delete

func Delete(url string, params map[string]interface{}) (*Resp, error)

func Get

func Get(url string, params map[string]interface{}) (*Resp, error)

func PostForm

func PostForm(url string, params map[string]interface{}) (*Resp, error)

func PostFormFile

func PostFormFile(url string, params map[string]interface{}) (*Resp, error)

func PostJson

func PostJson(url string, params interface{}) (*Resp, error)

func Request

func Request(request *http.Request) (*Resp, error)

func (*Resp) AsJson

func (resp *Resp) AsJson(v interface{}) error

func (*Resp) AsString

func (resp *Resp) AsString() string

func (*Resp) Header

func (resp *Resp) Header() http.Header

func (*Resp) Status

func (resp *Resp) Status() string

func (*Resp) StatusCode

func (resp *Resp) StatusCode() int

Jump to

Keyboard shortcuts

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