{"id":7690555,"url":"https://github.com/EasyHttp/EasyHttp","last_synced_at":"2025-07-13T12:31:55.517Z","repository":{"id":1159664,"uuid":"1047706","full_name":"EasyHttp/EasyHttp","owner":"EasyHttp","description":"Http Library for C#","archived":false,"fork":false,"pushed_at":"2021-01-13T19:14:43.000Z","size":12755,"stargazers_count":971,"open_issues_count":19,"forks_count":271,"subscribers_count":76,"default_branch":"develop","last_synced_at":"2024-05-06T08:32:35.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EasyHttp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-03T12:26:06.000Z","updated_at":"2024-05-03T20:12:23.000Z","dependencies_parsed_at":"2022-07-08T17:47:41.898Z","dependency_job_id":null,"html_url":"https://github.com/EasyHttp/EasyHttp","commit_stats":null,"previous_names":["hhariri/easyhttp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyHttp%2FEasyHttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyHttp%2FEasyHttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyHttp%2FEasyHttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyHttp%2FEasyHttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyHttp","download_url":"https://codeload.github.com/EasyHttp/EasyHttp/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225882311,"owners_count":17539150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-04-09T13:06:41.200Z","updated_at":"2024-11-22T10:30:54.444Z","avatar_url":"https://github.com/EasyHttp.png","language":"C#","readme":"# Project Status\n\nThis project is active and maintained by [David Alpert](https://github.com/davidalpert).\n\n# EasyHttp\n\n\n\nAn easy to use HTTP client that supports:\n\n* HEAD, PUT, DELETE, GET, POST\n* Cookies\n* Authentication\n* Dynamic and Static Typing\n* XML, JSON and WWW-Url form encoded encoding/decoding\n* File upload both via PUT and POST (multipart/formdata)\n* Some other neat little features....\n\n## License\n\nLicensed under Modified BSD (i.e. pretty much MIT). \n\nFor full License and included software licenses please see LICENSE.TXT\n\n\nPlease log all issues here: http://youtrack.codebetter.com/issues/EHTTP\n\n## Installation\n\nYou can either download the source and compile or use nuget at http://nuget.org. To install with nuget:\n\n  Install-Package EasyHttp\n\n## Documentation\n\nThe documentation can be found on the [wiki](https://github.com/hhariri/EasyHttp/wiki). \n\n## Usage\n\n### Using static types \n\nTo post/put a customer to  some service: \n\n  \n```\n\tvar customer = new Customer(); \n\tcustomer.Name = \"Joe\"; \n\tcustomer.Email = \"joe@smith.com\";\n\tvar http = new HttpClient();\n\thttp.Post(\"url\", customer, HttpContentTypes.ApplicationJson);\n```\n \nTo get some data in JSON format:\n\n```\n\tvar http = new HttpClient();\n\thttp.Request.Accept = HttpContentTypes.ApplicationJson;\n\tvar response = http.Get(\"url\");\n\tvar customer = response.StaticBody\u003cCustomer\u003e();\n\tConsole.WriteLine(\"Name: {0}\", customer.Name);\n```\n\n### Using dynamic  types\n\nTo post/put a customer to  some service: \n\n```\n\tvar customer = new ExpandoObject(); // Or any dynamic type\n\tcustomer.Name = \"Joe\";\n\tcustomer.Email = \"joe@smith.com\";\n\tvar http = new HttpClient();\n\thttp.Post(\"url\", customer, HttpContentTypes.ApplicationJson);\n```\n \nTo get some data in JSON format:\n\n\n```\n\tvar http = new HttpClient();\n\thttp.Request.Accept = HttpContentTypes.ApplicationJson;\n\tvar response = http.Get(\"url\");\n\tvar customer = response.DynamicBody;\n\tConsole.WriteLine(\"Name {0}\", customer.Name);\n```\n\nBoth in Static and Dynamic versions, hierarchies are supported.\n\n## Perform a get with parameters\n\nTo get some data from a service\n\n ```\n\tvar http = new HttpClient();\n\thttp.Get(\"url\", new {Name = \"test\"});\n```\n\nShould translate to the following url being passed. url?Name=test the value will be urlencoded.\n\nTo get some data in JSon format.\n\n ```\n\tvar http = new HttpClient();\n\thttp.Request.Accept = HttpContentTypes.ApplicationJson;\n\thttp.Get(\"url\", new {Name = \"test\"});\n```\n\n\n## Serialization / Deserialization Conventions\n\nFor serialization / deserialization, you can use pretty much any type of naming convention, be it Propercase, CamelCase, lowerCamelCase, with_underscores, etc. If for some reason, your convention is not picked up, you can always decorate the property with an attribute:\n\n```\n \n   [JsonName(\"mycustomname\")] \n   public string SomeWeirdCombination { get; set; }\n```\n\n## Credits\n\nCopyright (c) 2010 - 2017 Hadi Hariri and Project Contributors\n\nJsonFX: Licensed under MIT. EasyHttp uses the awesome JsonFX library at http://github.com/jsonfx\n","funding_links":[],"categories":["C\\#","HTTP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEasyHttp%2FEasyHttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEasyHttp%2FEasyHttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEasyHttp%2FEasyHttp/lists"}