httputil

package
v0.0.0-...-52a1fb6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFetcher = Fetcher{
	Client:         http.DefaultClient,
	Decoder:        sitemap.Decode,
	RecurseSitemap: true,
}

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	Client         *http.Client
	Decoder        func(io.Reader, data.EntryCallback) error
	RecurseSitemap bool
}

func (Fetcher) Fetch

func (f Fetcher) Fetch(sitemapURL string, callback data.EntryCallback) error

Jump to

Keyboard shortcuts

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