File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 6
6
use Psr \Http \Message \RequestInterface ;
7
7
8
8
/**
9
- * Adds headers to the request.
9
+ * Append headers to the request.
10
+ *
10
11
* If the header already exists the value will be appended to the current value.
11
12
*
12
13
* This only makes sense for headers that can have multiple values like 'Forwarded'
@@ -23,7 +24,7 @@ final class HeaderAppendPlugin implements Plugin
23
24
private $ headers = [];
24
25
25
26
/**
26
- * @param array $headers headers to add to the request
27
+ * @param array $headers Hashmap of header name to header value
27
28
*/
28
29
public function __construct (array $ headers )
29
30
{
Original file line number Diff line number Diff line change 6
6
use Psr \Http \Message \RequestInterface ;
7
7
8
8
/**
9
- * Set default values for the request headers.
9
+ * Set header to default value if it does not exist.
10
+ *
10
11
* If a given header already exists the value wont be replaced and the request wont be changed.
11
12
*
12
13
* @author Soufiane Ghzal <[email protected] >
@@ -19,7 +20,7 @@ final class HeaderDefaultsPlugin implements Plugin
19
20
private $ headers = [];
20
21
21
22
/**
22
- * @param array $headers headers to set to the request
23
+ * @param array $headers Hashmap of header name to header value
23
24
*/
24
25
public function __construct (array $ headers )
25
26
{
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ final class HeaderRemovePlugin implements Plugin
18
18
private $ headers = [];
19
19
20
20
/**
21
- * @param array $headers headers to remove from the request
21
+ * @param array $headers List of header names to remove from the request
22
22
*/
23
23
public function __construct (array $ headers )
24
24
{
Original file line number Diff line number Diff line change 6
6
use Psr \Http \Message \RequestInterface ;
7
7
8
8
/**
9
- * Set headers to the request.
9
+ * Set headers on the request.
10
+ *
10
11
* If the header does not exist it wil be set, if the header already exists it will be replaced.
11
12
*
12
13
* @author Soufiane Ghzal <[email protected] >
@@ -19,7 +20,7 @@ final class HeaderSetPlugin implements Plugin
19
20
private $ headers = [];
20
21
21
22
/**
22
- * @param array $headers headers to set to the request
23
+ * @param array $headers Hashmap of header name to header value
23
24
*/
24
25
public function __construct (array $ headers )
25
26
{
You can’t perform that action at this time.
0 commit comments