kasumi

package
v0.0.0-...-3c2666d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	*Request // 请求字段
}

Network 网络请求件

func New

func New(r *Request) *Network

New 新建网络请求件

请求失败返回 nil ,请务必检查

func (*Network) TwitterReq

func (n *Network) TwitterReq(p string) (res *http.Response)

TwitterReq 适用于 Twitter 的网络请求

type Request

type Request struct {
	Addr      string     // 地址
	Method    string     // 模式
	Header    [][]string // 请求头
	ProxyAddr string     // 代理地址
}

Request 请求字段

Addr 和 Method 是必填字段

当上述字段留空时返回空指针,请谨慎使用

Jump to

Keyboard shortcuts

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