Skip to content

Commit

Permalink
implementing "delete" request
Browse files Browse the repository at this point in the history
  • Loading branch information
dittertp committed Sep 30, 2014
1 parent b217894 commit 02923b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 16 additions & 0 deletions src/Puzzle/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,22 @@ protected function getRequest($method, $uri, $params, $body)
return $this->execute($method, $uri, $params, $body);
}

/**
* delete request implementation
*
* @param string $method the request method
* @param string $uri the uri
* @param string $params optional query string parameters
* @param string $body body/post parameters
*
* @return string
* @throws \Puzzle\Exceptions\InvalidRequestException
*/
protected function deleteRequest($method, $uri, $params, $body)
{
return $this->execute($method, $uri, $params, $body);
}

/**
* head request implementation
*
Expand Down
4 changes: 1 addition & 3 deletions src/Puzzle/Interfaces/SerializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @link http://www.appserver.io
*/

Interface SerializerInterface
interface SerializerInterface
{
/**
* Serialize assoc array into JSON string
Expand All @@ -47,10 +47,8 @@ public function serialize($data);
* Deserialize JSON into an assoc array
*
* @param string $data JSON encoded string
* @param array $headers Response Headers
*
* @return array
*/
public function deserialize($data);

}

0 comments on commit 02923b7

Please sign in to comment.