Documentation ¶
Index ¶
- func ApplyURLTransformer(urlTransformer URLTransformer, baseURLs ...string) ([]string, error)
- func Bytes(ctx context.Context, url string, display func(string), checker ResponseChecker, ...) ([]byte, error)
- func JSON(ctx context.Context, url string, display func(string), checker ResponseChecker, ...) (any, error)
- func NoCheck(*http.Response) error
- func NoDisplay(string)
- func NoTransform(value string) (string, error)
- type RequestOption
- type ResponseChecker
- type URLTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyURLTransformer ¶ added in v3.2.11
func ApplyURLTransformer(urlTransformer URLTransformer, baseURLs ...string) ([]string, error)
func Bytes ¶
func Bytes(ctx context.Context, url string, display func(string), checker ResponseChecker, requestOptions ...RequestOption) ([]byte, error)
func JSON ¶ added in v3.1.0
func JSON(ctx context.Context, url string, display func(string), checker ResponseChecker, requestOptions ...RequestOption) (any, error)
func NoTransform ¶ added in v3.2.11
Types ¶
type RequestOption ¶ added in v3.1.0
func WithBasicAuth ¶ added in v3.1.0
func WithBasicAuth(username string, password string) RequestOption
type ResponseChecker ¶ added in v3.2.11
type URLTransformer ¶ added in v3.2.11
func NewURLTransformer ¶ added in v3.2.11
func NewURLTransformer(prevBaseURL string, baseURL string) URLTransformer
Click to show internal directories.
Click to hide internal directories.