request

package
v0.0.0-...-e8169dd Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentType

func ContentType(url, refer string) string

ContentType get Content-Type of the url

func Get

func Get(url, refer string, headers map[string]string) string

Get get request

func Headers

func Headers(url, refer string) http.Header

Headers return the HTTP Headers of the url

func Request

func Request(
	method, url string, body io.Reader, headers map[string]string,
) *http.Response

Request base request

func Size

func Size(url, refer string) int64

Size get size of the url

Types

This section is empty.

Jump to

Keyboard shortcuts

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