var Response = Maker.Request(HOST,"get");
Reponse
is a simple string.
Dictionary<string, string> Dict = new Dictionary<string, string>(); Dict.Add(Key,Value);
var Response = Task.Run(() => Maker.RequestAsync(HOST, Dict));
Response.Result
will be a simple string.
Maybe you could not find the package after getting it from nuget.org, then you need to change this line of code of the projects.assets.json
file after a successful installation of the library in \obj
folder:
"HttpRequestor/1.2.0": {
"type": "package",
"compile": {
"lib/netcoreapp2.1/_._": {}
},
"runtime": {
"lib/netcoreapp2.1/Requestor.dll": {}
}
},
To this:
"HttpRequestor/1.2.0": {
"type": "package",
"compile": {
"lib/netcoreapp2.1/Requestor.dll": {}
},
"runtime": {
"lib/netcoreapp2.1/Requestor.dll": {}
}
},