http

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *Config) *client

Types

type Config

type Config struct {
	TimeOver   int64
	TimeOut    int64
	Account    string            // 账号
	Pwd        string            // 密码
	Headers    map[string]string // request headers
	CookieName string
}

type ServerResponse

type ServerResponse struct {
	Path     string      `json:"path"`
	BaseAuth bool        `json:"baseAuth"`
	Data     interface{} `json:"data"`
	Body     io.Reader
	Fields   map[string]string
}

Jump to

Keyboard shortcuts

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