fastclient

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(urlString string) (baseURL string, err error)

ParseURL get base url

Types

type FastClient

type FastClient struct {
	Req    *fasthttp.Request
	Rsp    *fasthttp.Response
	Client *fasthttp.Client
	// contains filtered or unexported fields
}

func New

func New() *FastClient

New fastClient

func NewOnce

func NewOnce() *FastClient

NewOnce fastClient

func (*FastClient) Close added in v0.1.2

func (s *FastClient) Close()

func (*FastClient) Get

func (s *FastClient) Get(url string) (int, []byte, error)

func (*FastClient) Post added in v0.1.2

func (s *FastClient) Post(u, payload string) (int, []byte, error)

func (*FastClient) Prompt

func (s *FastClient) Prompt() *FastClient

func (*FastClient) Release

func (s *FastClient) Release()

func (*FastClient) Upload added in v0.1.2

func (s *FastClient) Upload(url, uploadFile, field, tid string) ([]byte, error)

Upload upload

Jump to

Keyboard shortcuts

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