Adds comprehensive pagination metadata to HTTP response headers.
This function enriches the HTTP response with pagination information including
traditional page-based headers, offset-based headers, and RFC 5988 compliant
Link headers for API navigation. It automatically calculates next/previous
offsets and constructs proper URLs for pagination links.
The function adds both standard pagination headers (X-Total-Count, X-Current-Page)
and modern offset-based headers (X-Offset, X-Next-Offset) to support different
client pagination strategies. Link headers provide direct navigation URLs for
first, last, next, and previous pages.
Adds comprehensive pagination metadata to HTTP response headers.
This function enriches the HTTP response with pagination information including traditional page-based headers, offset-based headers, and RFC 5988 compliant Link headers for API navigation. It automatically calculates next/previous offsets and constructs proper URLs for pagination links.
The function adds both standard pagination headers (X-Total-Count, X-Current-Page) and modern offset-based headers (X-Offset, X-Next-Offset) to support different client pagination strategies. Link headers provide direct navigation URLs for first, last, next, and previous pages.