HttpRequestor 1.5.0

Requestor

This package can send request and returns response easily beside some simple features like define the request method.

Install-Package HttpRequestor -Version 1.5.0
dotnet add package HttpRequestor --version 1.5.0
<PackageReference Include="HttpRequestor" Version="1.5.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HttpRequestor --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Send GET http request:

Use this method to send it:

var Response = Maker.Request(HOST,"get");

Reponse:

Reponse is a simple string.

To send a form with POST or any other method:

Make a dictionary same as your form:

Dictionary<string, string> Dict = new Dictionary<string, string>();
Dict.Add(Key,Value);

Then use this method to send it:

var Response = Task.Run(() => Maker.RequestAsync(HOST, Dict));

Reponse:

Response.Result will be a simple string.

UWP only supports get method at this version.

Send GET http request:

Use this method to send it:

var Response = Maker.Request(HOST,"get");

Reponse:

Reponse is a simple string.

To send a form with POST or any other method:

Make a dictionary same as your form:

Dictionary<string, string> Dict = new Dictionary<string, string>();
Dict.Add(Key,Value);

Then use this method to send it:

var Response = Task.Run(() => Maker.RequestAsync(HOST, Dict));

Reponse:

Response.Result will be a simple string.

UWP only supports get method at this version.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.5.0 59 5/22/2019