@alex.garcia/libfec / rss / FetchOptions
Interface: FetchOptions
Defined in: rss.ts:86
fetch's options: the feed filters, plus how to fetch.
Extends
Properties
preset?
optionalpreset?:Preset
Defined in: rss.ts:74
A predefined filter (case-insensitive). Default "all".
Inherited from
committees?
optionalcommittees?:string|Iterable<string,any,any>
Defined in: rss.ts:76
Committee IDs ("C00505412").
Inherited from
forms?
optionalforms?:string|Iterable<string,any,any>
Defined in: rss.ts:78
Form types ("F3X").
Inherited from
states?
optionalstates?:string|Iterable<string,any,any>
Defined in: rss.ts:80
Two-letter state codes.
Inherited from
parties?
optionalparties?:string|Iterable<string,any,any>
Defined in: rss.ts:82
Party codes ("DEM").
Inherited from
signal?
optionalsignal?:AbortSignal
Defined in: rss.ts:88
Abort the request. Default: a 60-second timeout.
proxy?
optionalproxy?:string| ((url) =>string)
Defined in: rss.ts:100
Fetch the feed through a proxy. The FEC sends no CORS headers, so a browser page can't read the feed directly. Not needed in Node, Deno or Bun.
- a string containing
{url}: that placeholder is replaced by the URL-encoded feed URL ("https://proxy.example/fetch?u={url}"); - any other string: a prefix for the URL-encoded feed URL (
"https://proxy.example/?url="); - a function: given the feed URL, returns the URL to fetch.