Replies: 1 comment
-
Headers already support templating. So, you can use the usual helpers in their values. I am not very keen to add response headers, we already have one to set the HTTP status from the template but it doesn't feel that natural. however, for the status there wasn't any proper alternative. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I am simulating"filtering" with CRUD routes
and found the need to return dynamic headers, in this case
to calculate number of responses and return a custom "X-Total-Count"
should be nice to be able to have a response helper like:
{{ resp_header 'label' value }}
really happy using mockoon,
nice work :-)
Beta Was this translation helpful? Give feedback.
All reactions