mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Multipart streaming
This commit is contained in:
committed by
Nick O'Leary
parent
d7f5b0c9d7
commit
9cc04da7b2
@@ -62,6 +62,18 @@
|
||||
<option value="obj" data-i18n="httpin.json"></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<input type="checkbox" id="node-input-throttling" style="display: inline-block; width: auto; vertical-align: top;">
|
||||
<label for="node-input-throttling" style="width: 70%;"><span data-i18n="httpin.throttling"></span></label>
|
||||
<div style="margin-left: 20px" class="node-input-throttling-row hide">
|
||||
<div class="form-row">
|
||||
<label for="node-input-interval"><i class="fa fa-clock-o"></i> <span data-i18n="httpin.interval"></span></label>
|
||||
<input type="text" id="node-input-interval">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]common.label.name">
|
||||
@@ -92,6 +104,7 @@
|
||||
<li><code>headers</code> is an object containing the response headers</li>
|
||||
<li><code>responseUrl</code> is the url of the server that responds</li>
|
||||
</ul>
|
||||
<p>The <b>interval</b> can be specified for (multipart) streams, to limit the number parts received: this is the number of milliseconds between parts in the stream.</p>
|
||||
<p><b>Note</b>: If you need to configure a proxy please add <b>http_proxy=...</b> to your environment variables and restart Node-RED.</p>
|
||||
</script>
|
||||
|
||||
@@ -105,6 +118,7 @@
|
||||
ret: {value:"txt"},
|
||||
url:{value:"",validate:function(v) { return (v.trim().length === 0) || (v.indexOf("://") === -1) || (v.trim().indexOf("http") === 0)} },
|
||||
tls: {type:"tls-config",required: false}
|
||||
throttling: {value:0}
|
||||
},
|
||||
credentials: {
|
||||
user: {type:"text"},
|
||||
@@ -138,6 +152,21 @@
|
||||
$('#node-input-useAuth').prop('checked', false);
|
||||
}
|
||||
$("#node-input-useAuth").change();
|
||||
|
||||
$("#node-input-throttling").change(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
$(".node-input-throttling-row").show();
|
||||
} else {
|
||||
$(".node-input-throttling-row").hide();
|
||||
$('#node-input-interval').val('0');
|
||||
}
|
||||
});
|
||||
if (this.interval) {
|
||||
$('#node-input-throttling').prop('checked', true);
|
||||
} else {
|
||||
$('#node-input-throttling').prop('checked', false);
|
||||
}
|
||||
$("#node-input-throttling").change();
|
||||
|
||||
function updateTLSOptions() {
|
||||
if ($("#node-input-usetls").is(':checked')) {
|
||||
|
Reference in New Issue
Block a user