HttpFilesStructureRemoteProcessor
Version #1
Description:
Gives the option of extending Respresso’s features with custom conversions.
Any data provided in the input is posted as JSON on the configured URL and the response JSON is parsed and piped to the output.
If there are any Lazy’s in the input it is recursively resolved and replaced with its content. Note that binary data is converted to a
base64
encoded String.IMPORTANT the response must be
application/json
and the structure must be HttpFilesStructure:v1. The response is parsed and converted to the output format.Only 200 OK is treated as a successful request.
Interface:
Config
: HttpProcessorExecutionConfigStructure:v1 [REQUIRED]Input
: StructureObject:v1 [REQUIRED]Output
: FilesStructure:v1
Internally used structures:
HttpFilesStructure:v1 HTTP response json is parsed as this structure.
Basic sample:
<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="HttpFilesStructureRemoteProcessor" version="1">
{
"url": STRING
}
</processor>
Advanced sample:
<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="HttpFilesStructureRemoteProcessor" version="1">
{
"body": STRING,
"connectTimeout": INTEGER,
"headers": ARRAY<HTTPHEADERSTRUCTURE:V1>,
"placeholders": ARRAY<DYNAMICPLACEHOLDERSTRUCTURE:V1>,
"socketTimeout": INTEGER,
"url": STRING
}
</processor>