Skip to content

a .net core tcp socket implemented http client 一个用原生TCP实现的 http client

Notifications You must be signed in to change notification settings

gyn7561/AsyncHttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsyncHttp

a .net core tcp socket implemented http client 一个用原生TCP实现的 http client

##Usage


var request = new HttpRequest();
request.Uri = new Uri("https://www.github.com");

//sync style
var html = asyncHttpClient.GetString(request);
Console.WriteLine(html);

//async style
var html = await asyncHttpClient.GetStringAsync(request);
Console.WriteLine(html);

//callback style
asyncHttpClient.Execute(request,(res)=>{
    res.BodyStream.ReadAsString((html) =>
    {
        Console.WriteLine(html);
    });
});

About

a .net core tcp socket implemented http client 一个用原生TCP实现的 http client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages