Module Sortal_feed.Fetch

HTTP feed fetching via Requests.

Supports conditional GET with ETag and Last-Modified headers to avoid re-downloading unchanged feeds.

type fetch_result = {
  1. body : string;
  2. etag : string option;
  3. last_modified : string option;
}
val fetch : session:Requests.t -> ?etag:string -> ?last_modified:string -> string -> (fetch_result, [ `Not_modified | `Error of string ]) result