Skip to main content

attach_pagination_headers

Function attach_pagination_headers 

Source
pub fn attach_pagination_headers(
    resp: &mut HttpResponse,
    base_path: &str,
    params: PageParams,
    total: usize,
)
Expand description

Attach X-Total-Count and optional RFC 8288 Link pagination headers to a response.