impl

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomPayload

func CustomPayload(data []byte, mimeType string) client.Payload

CustomPayload constructs payload with given data and MIME type.

func WwwFormPayload

func WwwFormPayload(s string) client.Payload

WwwFormPayload constructs a www URL-encoded form payload.

Types

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(hc plugin.HttpClient, cdMin uint, cdMax uint) *ClientImpl

func (*ClientImpl) CallApi

func (c *ClientImpl) CallApi(spec client.ApiSpec, context context.Context) (err error)

func (*ClientImpl) ExportCookies

func (c *ClientImpl) ExportCookies(url string) map[string]string

func (*ClientImpl) Get

func (c *ClientImpl) Get(
	url string, headers map[string]string, context context.Context,
) (body io.ReadCloser, err error)

func (*ClientImpl) GetUserAgent

func (c *ClientImpl) GetUserAgent() string

func (*ClientImpl) ImportCookies

func (c *ClientImpl) ImportCookies(cookies map[string]string, domains ...string)

func (*ClientImpl) SetUserAgent

func (c *ClientImpl) SetUserAgent(name string)

type Valve

type Valve struct {
	// contains filtered or unexported fields
}

func (*Valve) ClockIn

func (v *Valve) ClockIn()

func (*Valve) Wait

func (v *Valve) Wait()

Jump to

Keyboard shortcuts

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