Hi everyone!
I’m setting up a REST API call in WeWeb to execute a Supabase function, since using the native plugin is too limited for my use case.
In Postman, I’m able to configure the request like this:
curl --silent --location --request GET '<url>/rest/v1/rpc/filter_clientes?limit=10&offset=0' \
--header 'apikey: <apikey>' \
--header 'Authorization: <authorization>' \
--header 'Prefer: count=exact'
This call works perfectly and returns the Content-Range
header, which is essential for getting the total number of items in the query (e.g., 0-9/1663
, where 1663
is the total count).
However, when I set up the same request in WeWeb, I can’t access this header in the response — as shown in the screenshots I’ve attached.
It seems like WeWeb only exposes the response body, and the response headers are not available.
Question:
Is there any way to access the Content-Range
header in WeWeb?
Or any workaround to retrieve response headers from a REST API call?
Thanks in advance!