Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function head($url, array $headers = array())
 {
     return $this->sendRequest($this->client->head($url, $headers));
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function head($path, array $parameters = array(), array $headers = array())
 {
     $parameters = $this->buildQueryParameters($parameters);
     return $this->request($this->client->head($path, $headers, $parameters));
 }
 function it_build_a_head_request(ClientInterface $client, RequestInterface $request)
 {
     $client->head('/resource?foo=bar', ['some headers'], ['some options'])->shouldBeCalled(1)->willReturn($request);
     $this->setClient($client);
     $this->build('/resource', ['foo' => 'bar'], ['some headers'], null, null, ['some options'])->shouldReturn($request);
 }