package
Version:
v0.0.0-...-0be70c8
Opens a new window with list of versions in this module.
Published: Apr 1, 2024
License: GPL-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package httpfetch makes a remote HTTP call to retrieve an URL,
and parse that into a series of feed-items
It is abstracted into its own class to allow testing.
type HTTPFetch struct {
}
HTTPFetch is our state-storing structure
New creates a new object which will fetch our content.
Fetch performs the HTTP-fetch, and returns the feed-contents.
If our internal `content` field is non-empty it will be used in preference
to making a remote request, which is useful for testing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.