[Django Rest Framework, try to call a specific header
I've got a view based on viewsets.ReadOnlyModelViewSet. All works fine when i call my API with my custom pagination. Now, I would like to implement a custom http header and call it with 'curl -I'. I know that is possible with Response(data, headers=[{'something': something}) Response documentation and :
However, when i try to write my header like that, my custom pagination disapears.
Is there a specific way to write headers with viewsets.ReadOnlyModelViewSet ?
Thanks for reading me !