Refit.PagedAttribute
Declares how a method that returns PagedEnumerable<T, U> reads the items and the continuation from
each page. The source generator emits the request and the paging loop, so the method is called like any other and returns
the lazy sequence.
Gets or sets a value indicating whether a next link may point at any http or https origin. The client's credentials
are sent to whatever origin the server names, so prefer Origins or SameOrigin.
Gets or sets the member of the page that holds the items. When omitted, the page type must have exactly one member
that is a sequence of the item type, and the generator uses it.
Gets or sets the member of the page that holds the continuation: the cursor, the next offset, or the next link. A
null or empty value ends the sequence, so the member must be nullable.
Gets or sets the response header that holds the continuation, for APIs that return it outside the body. The page
type must be an ApiResponse<T> or an IApiResponse. The Link header is read for
its rel="next" relation; any other header is read as the whole value.
Gets or sets the origins a next link may point at, such as https://api.github.com.
Gets or sets a value indicating whether a next link may only point at the origin of the client's base address.
Gets or sets the member of the page that holds the total number of items, for offset paging. The sequence ends when
the offset reaches it, and the token parameter must be an Int32.
public PagedAttribute()