Is reuse of headers possible in Paw?

I am creating a group of queries that will use a common set of headers.

Is it possible to create a group of headers once and then copy / paste them into other queries? Or, even better, can I assign a known header group to multiple queries?

+4
source share
1 answer

The best way to do this is to have an environment domain for this. Make one variable for each header, you can have a variable with a name Content-Type(as an example) and assign it a value application/jsonfor one environment or application/xmlfor another environment. This way you can switch between JSON and XML in many requests at the same time.

Example of using Paw environments to switch headers

, Content-Type Accept. . , HTTP-.

+2

All Articles