Reed.ReqPlugin (reed v0.2.0)

A Req plugin for Reed.

This will stream the RSS feed over the network and apply the transformation to each item lazily.

This will store the result into the Req.Response struct under the :rss key in the :private field.

This is streamed chunk-by-chunk, meaning you can stop reading the RSS feed at any point, and you only store in memory what you decide to using the :transform option.

You can get the result using Req.Response.get_private(response, :rss).

Options

  • :transform - The transformation function / pipeline to apply to each item in the RSS feed. Check the documentation for Reed for more information.

Summary

Functions

Link to this function

attach(request, options \\ [])

Attaches Reed.ReqPlugin to the given Req.Request struct.

Link to this function

setup_rss_stream(request)