crawler

package
v0.0.0-...-ceba002 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeHeaderKey = "Content-Type"
	CONTENT_TYPE_JSON    = "application/json"
	CONTENT_TYPE_FORM    = "application/x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*http.Client
}

func NewApp

func NewApp() *App

func (*App) DoGet

func (app *App) DoGet(requrl string, headers H) (data []byte, err error)

func (*App) DoPost

func (app *App) DoPost(requrl string, headers H, body io.Reader) (data []byte, err error)

func (*App) DoPostForm

func (app *App) DoPostForm(requrl string, headers, params H) (data []byte, err error)

func (*App) DoPostJson

func (app *App) DoPostJson(requrl string, headers H, body interface{}) (data []byte, err error)

type H

type H map[string]string

Jump to

Keyboard shortcuts

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