mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
RssAgent accepts headers
, basic_auth
and user_agent
.
These options are provided by WebRequestConcern.
This commit is contained in:
parent
01dbb1a94a
commit
d18641d701
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ module Agents
|
|||
* `url` - The URL of the RSS feed.
|
||||
* `clean` - Attempt to use [feed-normalizer](https://github.com/aasmith/feed-normalizer)'s' `clean!` method to cleanup HTML in the feed. Set to `true` to use.
|
||||
* `expected_update_period_in_days` - How often you expect this RSS feed to change. If more than this amount of time passes without an update, the Agent will mark itself as not working.
|
||||
* `headers` - When present, it should be a hash of headers to send with the request.
|
||||
* `basic_auth` - Specify HTTP basic auth parameters: `"username:password"`, or `["username", "password"]`.
|
||||
* `user_agent` - A custom User-Agent name (default: "Faraday v#{Faraday::VERSION}").
|
||||
MD
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue