@superglue/cli 1.1.92 → 1.1.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -87,6 +87,15 @@ XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceD
|
|
|
87
87
|
- Default headers: `Accept: */*`, Chrome-like `User-Agent`
|
|
88
88
|
- HTTPS: `rejectUnauthorized: false` (accepts self-signed certs)
|
|
89
89
|
|
|
90
|
+
### Tool Step Response Metadata
|
|
91
|
+
|
|
92
|
+
Set `config.captureHttpResponse: true` on HTTP request steps that need response metadata. The default is off.
|
|
93
|
+
Successful steps expose `sourceData.stepId.http.statusCode` and `sourceData.stepId.http.headers`; `.data` remains the response body.
|
|
94
|
+
Loop results carry `.http` per item. Pagination exposes the final response's metadata; stop conditions retain per-page `response.headers`.
|
|
95
|
+
Stored `stepResults` retain the metadata, including failed HTTP responses. No HTTP response means no `.http` field.
|
|
96
|
+
Header names are lowercase; `set-cookie` values are arrays, and other values are strings.
|
|
97
|
+
Steps without the option keep their existing envelopes and outputs.
|
|
98
|
+
|
|
90
99
|
### Body Resolution
|
|
91
100
|
|
|
92
101
|
The runtime processes the body in this order:
|
package/package.json
CHANGED
|
@@ -87,6 +87,15 @@ XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceD
|
|
|
87
87
|
- Default headers: `Accept: */*`, Chrome-like `User-Agent`
|
|
88
88
|
- HTTPS: `rejectUnauthorized: false` (accepts self-signed certs)
|
|
89
89
|
|
|
90
|
+
### Tool Step Response Metadata
|
|
91
|
+
|
|
92
|
+
Set `config.captureHttpResponse: true` on HTTP request steps that need response metadata. The default is off.
|
|
93
|
+
Successful steps expose `sourceData.stepId.http.statusCode` and `sourceData.stepId.http.headers`; `.data` remains the response body.
|
|
94
|
+
Loop results carry `.http` per item. Pagination exposes the final response's metadata; stop conditions retain per-page `response.headers`.
|
|
95
|
+
Stored `stepResults` retain the metadata, including failed HTTP responses. No HTTP response means no `.http` field.
|
|
96
|
+
Header names are lowercase; `set-cookie` values are arrays, and other values are strings.
|
|
97
|
+
Steps without the option keep their existing envelopes and outputs.
|
|
98
|
+
|
|
90
99
|
### Body Resolution
|
|
91
100
|
|
|
92
101
|
The runtime processes the body in this order:
|