Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile -... Zeile 2...
-
 
2
 
-
 
3
declare(strict_types=1);
2
 
4
 
Zeile 3... Zeile 5...
3
namespace Psr\Http\Message;
5
namespace Psr\Http\Message;
4
 
6
 
5
/**
7
/**
Zeile 36... Zeile 38...
36
     * new protocol version.
38
     * new protocol version.
37
     *
39
     *
38
     * @param string $version HTTP protocol version
40
     * @param string $version HTTP protocol version
39
     * @return static
41
     * @return static
40
     */
42
     */
41
    public function withProtocolVersion($version);
43
    public function withProtocolVersion(string $version);
Zeile 42... Zeile 44...
42
 
44
 
43
    /**
45
    /**
44
     * Retrieves all message header values.
46
     * Retrieves all message header values.
45
     *
47
     *
Zeile 73... Zeile 75...
73
     * @param string $name Case-insensitive header field name.
75
     * @param string $name Case-insensitive header field name.
74
     * @return bool Returns true if any header names match the given header
76
     * @return bool Returns true if any header names match the given header
75
     *     name using a case-insensitive string comparison. Returns false if
77
     *     name using a case-insensitive string comparison. Returns false if
76
     *     no matching header name is found in the message.
78
     *     no matching header name is found in the message.
77
     */
79
     */
78
    public function hasHeader($name);
80
    public function hasHeader(string $name);
Zeile 79... Zeile 81...
79
 
81
 
80
    /**
82
    /**
81
     * Retrieves a message header value by the given case-insensitive name.
83
     * Retrieves a message header value by the given case-insensitive name.
82
     *
84
     *
Zeile 89... Zeile 91...
89
     * @param string $name Case-insensitive header field name.
91
     * @param string $name Case-insensitive header field name.
90
     * @return string[] An array of string values as provided for the given
92
     * @return string[] An array of string values as provided for the given
91
     *    header. If the header does not appear in the message, this method MUST
93
     *    header. If the header does not appear in the message, this method MUST
92
     *    return an empty array.
94
     *    return an empty array.
93
     */
95
     */
94
    public function getHeader($name);
96
    public function getHeader(string $name);
Zeile 95... Zeile 97...
95
 
97
 
96
    /**
98
    /**
97
     * Retrieves a comma-separated string of the values for a single header.
99
     * Retrieves a comma-separated string of the values for a single header.
98
     *
100
     *
Zeile 110... Zeile 112...
110
     * @param string $name Case-insensitive header field name.
112
     * @param string $name Case-insensitive header field name.
111
     * @return string A string of values as provided for the given header
113
     * @return string A string of values as provided for the given header
112
     *    concatenated together using a comma. If the header does not appear in
114
     *    concatenated together using a comma. If the header does not appear in
113
     *    the message, this method MUST return an empty string.
115
     *    the message, this method MUST return an empty string.
114
     */
116
     */
115
    public function getHeaderLine($name);
117
    public function getHeaderLine(string $name);
Zeile 116... Zeile 118...
116
 
118
 
117
    /**
119
    /**
118
     * Return an instance with the provided value replacing the specified header.
120
     * Return an instance with the provided value replacing the specified header.
119
     *
121
     *
Zeile 127... Zeile 129...
127
     * @param string $name Case-insensitive header field name.
129
     * @param string $name Case-insensitive header field name.
128
     * @param string|string[] $value Header value(s).
130
     * @param string|string[] $value Header value(s).
129
     * @return static
131
     * @return static
130
     * @throws \InvalidArgumentException for invalid header names or values.
132
     * @throws \InvalidArgumentException for invalid header names or values.
131
     */
133
     */
132
    public function withHeader($name, $value);
134
    public function withHeader(string $name, $value);
Zeile 133... Zeile 135...
133
 
135
 
134
    /**
136
    /**
135
     * Return an instance with the specified header appended with the given value.
137
     * Return an instance with the specified header appended with the given value.
136
     *
138
     *
Zeile 145... Zeile 147...
145
     * @param string $name Case-insensitive header field name to add.
147
     * @param string $name Case-insensitive header field name to add.
146
     * @param string|string[] $value Header value(s).
148
     * @param string|string[] $value Header value(s).
147
     * @return static
149
     * @return static
148
     * @throws \InvalidArgumentException for invalid header names or values.
150
     * @throws \InvalidArgumentException for invalid header names or values.
149
     */
151
     */
150
    public function withAddedHeader($name, $value);
152
    public function withAddedHeader(string $name, $value);
Zeile 151... Zeile 153...
151
 
153
 
152
    /**
154
    /**
153
     * Return an instance without the specified header.
155
     * Return an instance without the specified header.
154
     *
156
     *
Zeile 159... Zeile 161...
159
     * the named header.
161
     * the named header.
160
     *
162
     *
161
     * @param string $name Case-insensitive header field name to remove.
163
     * @param string $name Case-insensitive header field name to remove.
162
     * @return static
164
     * @return static
163
     */
165
     */
164
    public function withoutHeader($name);
166
    public function withoutHeader(string $name);
Zeile 165... Zeile 167...
165
 
167
 
166
    /**
168
    /**
167
     * Gets the body of the message.
169
     * Gets the body of the message.
168
     *
170
     *