download

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUrlTranformer

func ApplyUrlTranformer(urlTransformer func(string) (string, error), baseURLs ...string) ([]string, error)

func Bytes

func Bytes(ctx context.Context, url string, display func(string), requestOptions ...RequestOption) ([]byte, error)

func JSON added in v3.1.0

func JSON(ctx context.Context, url string, display func(string), requestOptions ...RequestOption) (any, error)

func NoDisplay added in v3.1.0

func NoDisplay(string)

func UrlTranformer

func UrlTranformer(rewriteRule []string) func(string) (string, error)

Types

type RequestOption added in v3.1.0

type RequestOption = func(*http.Request)

func WithBasicAuth added in v3.1.0

func WithBasicAuth(username string, password string) RequestOption

Jump to

Keyboard shortcuts

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