request

package
v0.0.0-...-7d36c00 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgentPCChrome    = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36`
	UserAgentPhoneChrome = `` /* 149-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func AnalysisCookieString

func AnalysisCookieString(cookies string) map[string]string

use F12 dev tools in browser and write [document.cookie] in console

func Handler

func Handler(data Data) []byte

request handler

Types

type Data

type Data struct {
	Headers map[string]string //optional
	Method  string            //default get
	Url     string
	Cookies map[string]string //optional
}

Jump to

Keyboard shortcuts

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