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/Initialization/Set-response-file.mdx

44 lines
757 B
Plaintext
Raw Normal View History

2025-05-04 21:43:56 +03:00
---
sidebar_position: 4
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Set response file
Sets the file path to save the query result
`Function SetResponseFile(Val Value) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Value | --filepath | String | ✔ | File path |
Returns: DataProcessorObject.OPI_HTTPClient - This processor object
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
TFN = GetTempFileName();
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetResponseFile(TFN) // <---
.ProcessRequest("GET")
.ReturnResponseFilename();
```