# Easy HTTP–not Just a Catchy Name

I was recently referred to EasyHTTP by it’s creator, Hadi Hariri. Hadi was looking at some code I had sent him regarding my work with the TeamCity REST API and thought that things could be a little easier and less verbose.

In summary my application creates a new HttpWebRequest passing in the request type as a magic string. It opens a stream to read the JSON response and that JSON is then de-serialised to an entity. It was very messy. In order to call this class from my application I would have had to do the follow:

# EasyHTTP - Home

Welcome to the EasyHttp wiki!

## Nuget

nuget包 可以在nuget库中找到。

# EasyHTTP - Delete

DELETE方法请求源服务器删除Request-URI标识的资源。 可以通过源服务器上的人为干预（或其他方式）覆盖此方法。 即使从源服务器返回的状态代码表明操作已成功完成，也无法保证客户端已执行该操作。 但是，服务器不应该指示成功，除非在给出响应时，它打算删除资源或将其移动到不可访问的位置。

# EasyHTTP - Put

Put用于。

PUT方法请求将所包含的实体存储在提供的Request-URI下。如果Request-URI引用已经存在的资源，则封闭的实体应该被视为驻留在源服务器上的实体的修改版本。

# EasyHTTP - Post

POST方法用于请求源服务器接受请求中包含的实体作为Request-URI中Request-URI标识的资源的新下级。 POST旨在允许统一的方法来涵盖以下功能：

• 现有资源的注释;

# EasyHTTP - Streamresponse

StremResponse设置为true时，RawText属性将为空。