<PackageReference Include="Refit" Version="17.0.0" />

Refit.GeneratedPaging

public static class GeneratedPaging
Runtime helpers used by source-generated PagedAttribute methods.
public static string HeaderValue(IApiResponse response, string name)

Reads the first value of a response header.

public static Uri NextLink(IApiResponse response, string headerName)

Reads the link to the following page from a response header.

public static PageContinuation<int> NextOffset<TItem>(int offset, IEnumerable<TItem> items, long? total)

Computes the offset of the page after one that began at offset, from the total item count.

public static PageContinuation<TToken> NextValue<TToken>(TToken? next) where TToken : struct

Creates the continuation for a token that a page holds as a nullable value.

Creates a policy that follows links only to the origin of the client's base address.

public static Uri ToLink(string link)

Converts the text of a next-page link to a URI.