http

package
v0.0.0-...-89f386c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(otherEncodeStr, encodeType string) (string, error)

func Encode

func Encode(utf8EncodeStr, encodeType string) (string, error)

func Get

func Get(url string, headerOptions ...HeaderOption) ([]byte, error)

func GetImage

func GetImage(url string, headerOptions ...HeaderOption) ([]byte, error)

func GetRespCookies

func GetRespCookies(url string) ([]*http.Cookie, error)

func GetRespHeader

func GetRespHeader(url string) (http.Header, error)

Types

type HeaderOption

type HeaderOption struct {
	Name  string
	Value string
}

type QueryParameter

type QueryParameter struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

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