Pagination header Content-Range / Range-Unit is not working #3767
-
Environment
Description of issueAccording to the documentation, it is possible to manage pagination with header following parameters:
Unfortunetly I'm trying to paginate with these parameters but the response contains all items and not only the 15th first I've triued using query parameters limit & offset and these query parameters are working well
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
Hm. The section you are referring to is this, I guess: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#limits-and-pagination This mentions explicitly that this the response format. You can expect the Further down, you can find the first mention of how to request that: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#range-header The header you need to send is |
Beta Was this translation helpful? Give feedback.
-
@wolfgangwalther: TIL: It looks like the latest RFC / HTTP Semantics spec has some valid use cases for |
Beta Was this translation helpful? Give feedback.
-
I ran into this issue too but I also tried using the |
Beta Was this translation helpful? Give feedback.
Hm. The section you are referring to is this, I guess: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#limits-and-pagination
This mentions explicitly that this the response format. You can expect the
Content-Range
header as a return. (This is the same with allContent-XX
headers btw, you never send them in a request)Further down, you can find the first mention of how to request that: https://docs.postgrest.org/en/v12/references/api/pagination_count.html#range-header
The header you need to send is
Range
.