Skip to content

@alex.garcia/libfec / rss / fetch

Function: fetch() ​

fetch(options?): Promise<Feed>

Defined in: rss.ts:174

Download and parse the feed, with the runtime's global fetch(). See FeedOptions for the filters.

In a browser, pass a FetchOptions.proxy: the FEC sends no CORS headers. Without one, the request fails with a TypeError that says so.

Parameters ​

options? ​

FetchOptions = {}

Returns ​

Promise<Feed>

Throws ​

The fetch() error on a network failure or abort; an Error for a non-2xx response; FecParseError if the body isn't a feed.