new structs to fetch, results and session

This commit is contained in:
mmacia committed 2026-02-17 22:43:26 +00:00
1 parent 7d0c5d9ae7
commit b875d66774
4 files changed
+75

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
defmodule FeedReader.Fetch do
@moduledoc """
HTTP metadata for a completed remote feed fetch.
The checksum is calculated from the decoded response body. A fetch is only
present on remote results and sessions; local parsing does not invent HTTP
metadata.
"""
@type t :: %__MODULE__{
etag: String.t() | nil,
checksum: String.t() | nil,
final_url: String.t() | nil,
status: pos_integer() | nil
}
defstruct etag: nil,
checksum: nil,
final_url: nil,
status: nil
end