Skip to content

Commit b6cce0f

Browse files
committed
Rename HttpAdapter to PsrHttpClient
1 parent c060d2e commit b6cce0f

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed
Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
<?php
22

3-
/*
4-
* This file is part of the Http Adapter package.
5-
*
6-
* (c) Eric GELOEN <geloen.eric@gmail.com>
7-
*
8-
* For the full copyright and license information, please read the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Http\Adapter;
3+
namespace Http\Client;
134

145
use Psr\Http\Message\RequestInterface;
156
use Psr\Http\Message\ResponseInterface;
167

178
/**
9+
* Sends one or more PSR-7 Request
10+
*
1811
* @author GeLo <geloen.eric@gmail.com>
1912
*/
20-
interface HttpAdapter
13+
interface PsrHttpClient
2114
{
2215
/**
2316
* Sends a PSR request
@@ -28,7 +21,7 @@ interface HttpAdapter
2821
* @return ResponseInterface
2922
*
3023
* @throws \InvalidArgumentException
31-
* @throws Exception\HttpAdapterException
24+
* @throws Exception\HttpClientException
3225
*/
3326
public function sendRequest(RequestInterface $request, array $options = []);
3427

@@ -41,14 +34,7 @@ public function sendRequest(RequestInterface $request, array $options = []);
4134
* @return ResponseInterface[]
4235
*
4336
* @throws \InvalidArgumentException
44-
* @throws Exception\MultiHttpAdapterException
37+
* @throws Exception\MultiHttpClientException
4538
*/
4639
public function sendRequests(array $requests, array $options = []);
47-
48-
/**
49-
* Returns the name
50-
*
51-
* @return string
52-
*/
53-
public function getName();
5440
}

0 commit comments

Comments
 (0)