2using System.Collections.Generic;
3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
55 : base(new
ScriptNode[] { Url, Data, Headers, Certificate },
new ArgumentType[] {
ArgumentType.Scalar,
ArgumentType.Normal,
ArgumentType.Normal, ArgumentType.Normal },
Start,
Length,
Expression)
95 object Data =
Arguments[1].AssociatedObjectValue;
96 List<KeyValuePair<string, string>> HeaderList =
null;
100 HeaderList =
Get.GetHeaders(
Arguments[2].AssociatedObjectValue,
this);
104 if (!(
Arguments[3].AssociatedObjectValue is X509Certificate Certificate))
107 Result = await
InternetContent.
PostAsync(Url, Data, Certificate, HeaderList?.ToArray() ??
new KeyValuePair<string, string>[0]);
Static class managing encoding and decoding of internet content.
static Task< object > PostAsync(Uri Uri, object Data, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
override string[] DefaultArgumentNames
Default Argument names
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
Post(ScriptNode Url, ScriptNode Data, int Start, int Length, Expression Expression)
Post(Url,Data)
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
Post(ScriptNode Url, ScriptNode Data, ScriptNode Headers, int Start, int Length, Expression Expression)
Post(Url,Data,Headers)
Post(ScriptNode Url, ScriptNode Data, ScriptNode Headers, ScriptNode Certificate, int Start, int Length, Expression Expression)
Post(Url,Data,Headers,Certificate)
Script runtime exception.
Class managing a script expression.
static IElement Encapsulate(object Value)
Encapsulates an object.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Basic interface for all types of elements.
ArgumentType
Type of parameter used in a function definition or a lambda definition.