http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOption

type CallOption interface {
	Before(req *restyv2.Request) error
	After(rsp *restyv2.Response) error
}
func Header(h http.Header) CallOption

type ClientOption

type ClientOption interface {
	Apply(c *restyv2.Client) error
}

func Retry

func Retry(times int, wait time.Duration) ClientOption

type HeaderCallOption

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

func (HeaderCallOption) After

func (h HeaderCallOption) After(rsp *restyv2.Response) error

func (HeaderCallOption) Before

func (h HeaderCallOption) Before(req *restyv2.Request) error

type RetryClientOption

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

func (RetryClientOption) Apply

func (r RetryClientOption) Apply(c *restyv2.Client) error

Jump to

Keyboard shortcuts

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