Add HTTPRequest::head() function
This commit is contained in:
parent
bfbf8816e2
commit
61da51c2d5
4 changed files with 34 additions and 8 deletions
|
@ -52,6 +52,17 @@ class HTTPRequest implements IHTTPRequest
|
|||
$this->baseUrl = $baseUrl->get();
|
||||
}
|
||||
|
||||
/** {@inheritDoc}
|
||||
*
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function head(string $url, array $opts = [])
|
||||
{
|
||||
$opts['nobody'] = true;
|
||||
|
||||
return $this->get($url, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue