# Default HTTP headers

You can set the HTTP headers of Folder and Project nodes, that will be inherited by child nodes and used in RequestStep nodes requests by default. Let's see how we can set and use default headers.

## Defining Default HTTP Headers

You can define your default headers in the Folder node. To do this, click on the **Headers** button on the Folder node toolbar.

![](https://1550208191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-LgfhSVUoFJEM98_tht0%2F-LgfjSwuSwYIys2vQFkC%2F1.png?alt=media\&token=9618cd40-7584-4c98-a124-1eef64d32ff4)

You'll see the default HTTP headers editing dialog:

![ The default HTTP headers editing dialog](https://1550208191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-LgfhSVUoFJEM98_tht0%2F-LgfjsCplgf70WxxwuHA%2F2.png?alt=media\&token=4f6a6ea5-7b5f-43c8-94bd-b2594cf86c8f)

At the top of the dialog you can see a read-only headers list inherited from parents. Next the chosen Folder node headers are specified. Apart from adding, deleting, editing (including [bulk edit](https://docs.testmace.com/other-features/bulk-edit)), it is possible to disable certain headers which will not be included in the resulting request. Headers state (enabled/disabled) is inherited as well.

You can also override headers in child nodes. For example, setting the `Hello, TestMace` value to the `RootDefaultHeader1` header will override the inherited header, and in child nodes of the chosen Folder node the  `RootDefaultHeader1` header will have the `Hello, TestMace` value. Note that the value of the **parent** `RootDefaultHeader1`  header will remain unchanged (`Hello, world`).

### Using Default Headers

Default headers are used in RequestStep nodes requests. They are inserted automatically and don't require user interaction. The interface of RequestStep requests headers editing is identical to the one of a Folder node.

### Default Headers in the File System

See the file representation of a [Folder](https://docs.testmace.com/node-types/folder#failovoe-predstavlenie) node. The `requestData.headers` field is used to store a headers list, and the `requestData.disabledInheritedHeaders` is used to store disabled headers. The same format applies to [RequestStep](https://docs.testmace.com/node-types/request-step#failovoe-predstavlenie) nodes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testmace.com/other-features/default-http-headers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
