Skip to content

Commit

Permalink
Merge pull request #182 from ChantsovaEkaterina/rest-api-call-node-ma…
Browse files Browse the repository at this point in the history
…x-response-size

REST API call node: max response size parameter added
  • Loading branch information
vvlladd28 authored Sep 5, 2024
2 parents 60233af + 42d2574 commit d46aac2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
<input type="number" step="1" min="0" matInput formControlName="maxParallelRequestsCount">
<mat-hint translate>tb.rulenode.max-parallel-requests-count-hint</mat-hint>
</mat-form-field>
<mat-form-field class="mat-block" subscriptSizing="dynamic">
<mat-label translate>tb.rulenode.max-response-size</mat-label>
<input type="number" step="1" min="1" matInput formControlName="maxInMemoryBufferSizeInKb">
<mat-hint translate>tb.rulenode.max-response-size-hint</mat-hint>
</mat-form-field>
<label translate class="tb-title">tb.rulenode.headers</label>
<div class="tb-hint" [innerHTML]="'tb.rulenode.headers-hint' | translate | safe: 'html'"> </div>
<tb-kv-map-config-old
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class RestApiCallConfigComponent extends RuleNodeConfigurationComponent {
readTimeoutMs: [configuration ? configuration.readTimeoutMs : null, []],
maxParallelRequestsCount: [configuration ? configuration.maxParallelRequestsCount : null, [Validators.min(0)]],
headers: [configuration ? configuration.headers : null, []],
credentials: [configuration ? configuration.credentials : null, []]
credentials: [configuration ? configuration.credentials : null, []],
maxInMemoryBufferSizeInKb: [configuration ? configuration.maxInMemoryBufferSizeInKb : null, [Validators.min(1)]]
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ export default function addRuleNodeCoreLocaleEnglish(translate: TranslateService
'read-timeout-hint': 'The value of 0 means an infinite timeout',
'max-parallel-requests-count': 'Max number of parallel requests',
'max-parallel-requests-count-hint': 'The value of 0 specifies no limit in parallel processing',
'max-response-size': 'Max response size (in KB)',
'max-response-size-hint': 'The maximum amount of memory allocated for buffering data when decoding or encoding HTTP messages, such as JSON or XML payloads',
headers: 'Headers',
'headers-hint': 'Use <code><span style="color: #000;">$&#123;</span>metadataKey<span style="color: #000;">&#125;</span></code> ' +
'for value from metadata, <code><span style="color: #000;">$[</span>messageKey<span style="color: #000;">]</span></code> ' +
Expand Down

0 comments on commit d46aac2

Please sign in to comment.