Add "HTTP request" operation

This commit is contained in:
toby 2017-06-07 22:42:37 -04:00
parent f1e7bc3363
commit a5f1c430a3
2 changed files with 90 additions and 0 deletions

View file

@ -3388,6 +3388,39 @@ const OperationConfig = {
}
]
},
"HTTP request": {
description: [
"Makes a HTTP request and returns the response body.",
"<br><br>",
"This operation supports different HTTP verbs like GET, POST, PUT, etc.",
"<br><br>",
"You can add headers line by line in the format <code>Key: Value</code>",
"<br><br>",
"This operation will throw an error for any status code that is not 200, unless the 'Ignore status code' option is checked.",
].join("\n"),
run: HTTP.runHTTPRequest,
inputType: "string",
outputType: "string",
args: [
{
name: "Method",
type: "option",
value: HTTP.METHODS,
}, {
name: "URL",
type: "string",
value: "",
}, {
name: "Headers",
type: "text",
value: "",
}, {
name: "Ignore status code",
type: "boolean",
value: false,
},
]
},
};
export default OperationConfig;