Skip to content

Commit cc1da51

Browse files
Implement head method
1 parent 5e9a2dd commit cc1da51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

restclient.php

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ public function delete($url, $parameters=[], $headers=[]){
120120
return $this->execute($url, 'DELETE', $parameters, $headers);
121121
}
122122

123+
public function head($url, $parameters=[], $headers=[]){
124+
return $this->execute($url, 'HEAD', $parameters, $headers);
125+
}
126+
123127
public function execute($url, $method='GET', $parameters=[], $headers=[]){
124128
$client = clone $this;
125129
$client->url = $url;

0 commit comments

Comments
 (0)