gresty

package
v0.0.0-...-52e5b9a Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestyClient = new(Resty)

Functions

func AssignTransport

func AssignTransport(c *http.Client, fn func(t *http.Transport))

func Client

func Client() *resty.Client

func HttpClientTransport

func HttpClientTransport(c *http.Client) (*http.Transport, error)

func RandUseragent

func RandUseragent() string

RandUseragent ...

func SetTransport

func SetTransport(c *http.Client, transport *http.Transport)

func SetTransportDialer

func SetTransportDialer(c *http.Client, dialer proxy.ContextDialer)

SetTransportDialer ...

Types

type Resty

type Resty struct {
	Logger resty.Logger `inject:""`
	// contains filtered or unexported fields
}

func New

func New() *Resty

func (*Resty) Client

func (r *Resty) Client() *resty.Client

Client ...Client

func (*Resty) Constructor

func (r *Resty) Constructor()

func (*Resty) GetLogger

func (r *Resty) GetLogger() resty.Logger

func (*Resty) ResponseEnsureOK

func (r *Resty) ResponseEnsureOK() *Resty

func (*Resty) SetLogger

func (r *Resty) SetLogger(Logger resty.Logger)

func (*Resty) SetProxy

func (r *Resty) SetProxy(proxy string) *Resty

Jump to

Keyboard shortcuts

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