Skip to main content

build_feed

Function build_feed 

Source
fn build_feed(
    base: String,
    items: &[FeedItem],
    algorithms: Option<CompressionAlgorithms>,
) -> Result<RenderedFeed, Error>
Expand description

渲染并压缩两种格式。lastBuildDate 取最近一篇的更新时间而不是当前时间:内容没变时 重建出的正文与 ETag 也不变,阅读器的条件请求能拿到 304。