1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/HTTP-client/Headers-setting/Set-headers.mdx

44 lines
799 B
Plaintext
Raw Normal View History

2025-05-04 21:43:56 +03:00
---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Set headers
Sets a collection of query headers
`Function SetHeaders(Val Value, Val FullReplace = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Value | - | Arbitrary | ✔ | Structure or map of request headers |
| FullReplace | - | Boolean | ✖ | Clears all existing headers before setting up |
Returns: DataProcessorObject.OPI_HTTPClient - This processor object
<br/>
:::tip
`FullReplace` also clears headers previously set by other methods (e.g., authorization headers)
:::
:::caution
**NOCLI:** this method is not available in CLI version
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
```