forked from EasyHttp/EasyHttp
-
Notifications
You must be signed in to change notification settings - Fork 0
Http Library for C#
License
holytshirt/EasyHttp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
*EasyHttp* Licensed under BSD. For full License and included software licenses please see LICENSE.TXT Please log all issues are tracked here: http://youtrack.codebetter.com/issues/EHTTP USAGE ===== To do a POST with JSON: var customer = new Customer(); customer.Name = "Joe"; customer.Email = "[email protected]"; var http = new HttpClient(); http.Post("url", customer, HttpContentTypes.ApplicationJson); To get some data in JSON format: var http = new HttpClient(); http.Request.Accept = HttpContentTypes.ApplicationJson; var response = http.Get("url"); dynamic customer = response.DynamicBody; Console.WriteLine(String.Format("Name: {0} - Email: {1}, customer.Name, customer.Email)); If you want Static: var customer = response.StaticBody<Customer>(); If you want just raw undecoded text: var customer = response.RawText;
About
Http Library for C#
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published