CatgirlIntelligenceAgency/code/features-search/feedlot-client
Viktor Lofgren 1694e9c78c (search) Add RSS Feeds to site info
This change integrates the Feedlot RSS Bot with Marginalia's site info view to offer a preview of the latest updates.

 The change introduces a new tiny feature that is a feedlot-client based on Java's HttpClient.
2023-12-26 16:21:40 +01:00
..
src/main/java/nu/marginalia/feedlot (search) Add RSS Feeds to site info 2023-12-26 16:21:40 +01:00
build.gradle (search) Add RSS Feeds to site info 2023-12-26 16:21:40 +01:00
readme.md (search) Add RSS Feeds to site info 2023-12-26 16:21:40 +01:00

Client for FeedlotTheFeedBot, the RSS/Atom feed fetcher and cache for Marginalia Search.

This service is external to the Marginalia Search codebase, as it is not a core part of the search engine and has other utilities.

Example


import java.time.Duration;

var client = new FeedlotClient("localhost", 8080, 
        gson, 
        Duration.ofMillis(100),  // connect timeout
        Duration.ofMillis(100)); // request timeout

CompleteableFuture<FeedItems> items = client.getFeedItems("www.marginalia.nu");