goquest

package module
v0.0.0-...-9e67ee9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

goquest

my request tool

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goquest

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

func Get

func Get(url string) *Goquest

func Post

func Post(url string) *Goquest

func (*Goquest) Byte

func (g *Goquest) Byte() []byte

Response

func (*Goquest) Json

func (g *Goquest) Json(v interface{}) error

func (*Goquest) JsonBody

func (g *Goquest) JsonBody(data interface{}) (*Goquest, error)

JsonBody

func (*Goquest) Param

func (g *Goquest) Param(key, value string) *Goquest

func (*Goquest) Query

func (g *Goquest) Query() (*Goquest, error)

func (*Goquest) SetHeader

func (g *Goquest) SetHeader(key, value string) *Goquest

Request Set Header Map

func (*Goquest) SetUserAgent

func (g *Goquest) SetUserAgent(ua string) *Goquest

SetUserAgent sets User-Agent header field

func (*Goquest) StatusCode

func (g *Goquest) StatusCode() int

func (*Goquest) String

func (g *Goquest) String() string

Jump to

Keyboard shortcuts

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