http

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type HTTPGatherer

type HTTPGatherer struct {
	Client http.Client
}

func NewHTTPGatherer

func NewHTTPGatherer() *HTTPGatherer

func (*HTTPGatherer) Gather

func (h *HTTPGatherer) Gather(ctx context.Context, rawSource, dst string) (meta metadata.Metadata, err error)

func (*HTTPGatherer) Matcher

func (h *HTTPGatherer) Matcher(uri string) bool

type HTTPMetadata

type HTTPMetadata struct {
	URI          string
	Path         string
	ResponseCode int
	Size         int64
	Timestamp    string
}

func (HTTPMetadata) Get

func (h HTTPMetadata) Get() interface{}

func (HTTPMetadata) GetPinnedURL

func (h HTTPMetadata) GetPinnedURL(u string) (string, error)

Jump to

Keyboard shortcuts

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