def post(params)
      body = read_body(params)

      args = self.configuration.merge(:body => body)
      http_resp = Restfolia::HTTP::Request.do_request(:post, self.url, args)
      Restfolia::HTTP.response_by_status_code(http_resp)
    end
def post(params)
      body = read_body(params)

      args = self.configuration.merge(:body => body)
      http_resp = Restfolia::HTTP::Request.do_request(:post, self.url, args)
      Restfolia::HTTP.response_by_status_code(http_resp)
    end
Public: Post data to EntryPoint's url.

 params - You have some options.
          String param is passed direct as body.
          Object that responds to :body is passed direct as body.
          Hash object with data to be encoded as JSON.

 Examples

   # Expecting API respond with 201 and Location header
   data = {:name => "Test"}
   resource = Restfolia.at("http://service.com/resource/1").post(data)

 Returns depends on http code from response. For each "range"
 (ex. 2xx, 3xx ... etc) you can have a different return value.
 For 2xx range, you can expect an instance of Restfolia::Resource.
 You can see Restfolia::HttpBehaviour for more details.

 Raises Restfolia::ResponseError for unexpected conditions. See
 Restfolia::HTTP::Behaviour methods for more details.
 Raises URI::InvalidURIError if url attribute is invalid.