jkhttp

package
v0.0.0-...-a9e9222 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JKGetDataSimple

func JKGetDataSimple(url string, timeout int) ([]byte, error)

func JKPostData

func JKPostData(iplist string, port int, page string, data []byte, timeout int) ([]byte, error)

func JKPostDataExtern

func JKPostDataExtern(ip string, port int, page string, data []byte, timeout int) ([]byte, error)

func JKPostDataSimple

func JKPostDataSimple(url string, args string, timeout int) ([]byte, error)

Types

type BBChat

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

func NewBBChat

func NewBBChat(title string, data string) (*BBChat, error)

func (*BBChat) Post

func (p *BBChat) Post() ([]byte, error)

type BBChatAttachInfo

type BBChatAttachInfo struct {
	Text  string `json:"text"`
	Color string `json:"color"`
}

type BBChatInfo

type BBChatInfo struct {
	Text   string             `json:"text"`
	Attach []BBChatAttachInfo `json:"attachments"`
}

type JKHttpQuery

type JKHttpQuery struct {
	Request *http.Request
	// contains filtered or unexported fields
}

func NewJKHttpQuery

func NewJKHttpQuery(url string, data string) (*JKHttpQuery, error)

func (*JKHttpQuery) AddCookie

func (h *JKHttpQuery) AddCookie(key, value string)

func (*JKHttpQuery) Post

func (h *JKHttpQuery) Post() ([]byte, error)

Jump to

Keyboard shortcuts

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