fastclient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(URLs 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) Get

func (c *FastClient) Get(u string) (int, []byte, error)

func (*FastClient) Prompt

func (c *FastClient) Prompt() *FastClient

func (*FastClient) Release

func (c *FastClient) Release()

Release release fasthttp client

Jump to

Keyboard shortcuts

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