Skip to content

jango2015/OwinHttpClient

 
 

Repository files navigation

OwinHttpClient

A bare bones, low ceremony, http client. There's a single method, Invoke that takes an owin environment that gets mutated with the response when the call to invoke is completed.

Middleware

The client takes advantage of Owin middleware to build up functionality. This of course is completely optional but the list of default middleware supports making http requests via sockets, ssl support, gzipped responses, handling automatic redirects and more...

See the list of middlware here

NOTE: The api is still in flux and it will be until it feels right.

Sample

The sample uses Owin.Types from http://www.myget.org/F/owin/ for OwinResponse.

var env = RequestBuilder.Get("http://www.reddit.com");

var client = new OwinHttpClient();

await client.Invoke(env);

var response = new OwinResponse(env);

var reader = new StreamReader(response.Body);
Console.WriteLine(await reader.ReadToEndAsync());

About

Barebones http client that uses the owin interface built on .NET socket API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%