A .Net Helper Library For Rapid Development.Give You A Easy Way Send Http Request

There is a newer version of this package available.
See the version list below for details.
Install-Package Nx -Version
dotnet add package Nx --version
<PackageReference Include="Nx" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nx --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

0x01:Simulation of the HTTP request ======================================
     var ctxIn = RequestBuilder.Create("default")
         .SetUserAgent("Nx Framework")
         .SetProxy(new WebProxy("")) //or .SetProxy(new WebProxy("",enable:true))
         .WithCookie("name=value") //or .WithCookies(List<Cookie> cookies) and so on.
         .WithBytesInput("file2",new byte[]{0x00,0x03,0x00,0x7f})
         .DisableProxy() //or .EnableProxy()
     var ctxIn = RequestManager.GetResponse(ctxIn);
         //if html, we have a nice intergration from Ivony's code(Jumony.Core) builtin.
         var document = respCtx.ResponseDocument;//get IHtmlDocument object.

         //Filter elements like JQUERY using the extensions from Ivony
         var theElements = document.AllElements().Find(".pager");
         //LINQ then
         //var matchedElemList = theElements.Where(...).ToList();
         //Get text directly
         var text = ctxIn.Text;
         //The stream, and other useful properties of IResponseContext
         var ms = ctxIn.Stream;
     0x02:Read Text Based File EASY And FAST.====================================
     var file = new Nx.IO.TextFileInfo("d:\\d.txt");

     //random row

     //row items
     foreach(var item in file.RowItems)
         //useful properties:

     0x03:ThreadSafeRandom =============================================
       see class Nx.ThreadSafeRandom
     For Who Wants Daily Source:
     SVN https://www.sandsea.info/svn/nxframework readonly by user "guest" with a pwd same as the name.
     Notes:It hosted on my own home small pc.Don't take it amiss if can not connect.
     I'm considering put this project on github someday.
     For this time, any suggestions or bugs can be submited by sending email to me(tiny@sandsea.info).
     [Updated at 2014.12.12 utc+8 (Beijing time)]

     Fix bug on determine if a request is multipart-form when build requst context
     Many Bugs Fixed.
     With Ivony Html Extension Builtin.Thanks Ivony's code(Jumony.Core)
     Add Chaos.NaCl's cryto class
     add support http post file using RequestBuilder.WithFileInput.
     the RequestBuilder.WithFormData changes to RequestBuilder.WithTextInput
     fixed bug in Nx.TimeUtil.GetTimestamp()
     small bug fix.
     Add "HttpMethod PUT" support for the core request utils.
     fix the bug that the post data does not submitted after use Nx.Net.RequestBuilder.SetHttpMethod("POST")


This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nx:

Package Downloads
A db util for easy sql query

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.8.0 910 3/10/2015 565 12/19/2014 552 12/19/2014 604 12/16/2014 539 12/15/2014 513 12/12/2014
2.4.1 605 12/12/2014 678 11/17/2014
2.3.1 1,277 11/16/2014 503 10/28/2014 529 10/21/2014 552 10/21/2014 490 10/14/2014 572 10/14/2014 537 10/14/2014
2.2.1 1,049 10/14/2014 586 9/29/2014
Show less