/Sphinx

a simple c# package to make http requests in one line ;)

Primary LanguageC#MIT LicenseMIT

Sphinx

a too simple c# package to make http requests in one line ;)
Nuget

How to use ?

here some examples

  • Get Request Example:
  string result = Request.Get("https://github.com/").Body;
  Console.WriteLine(result);
  • Post Request (JSON) Example:
  WebHeaderCollection collection = new WebHeaderCollection
  {
      { "authorization", "authorization token" }
  };
  string result = Request.Post("https://github.com/", Converter.JSON(new { content = "hello Sphinx :)" }), ContentType.json, collection).Body;
  Console.WriteLine(result);

how to install ?

Nuget