Lines Matching refs:this

26         return $this->protocol;
31 if ($this->protocol === $version) {
32 return $this;
35 $new = clone $this;
42 return $this->headers;
47 return isset($this->headerNames[strtolower($header)]);
54 if (!isset($this->headerNames[$header])) {
58 $header = $this->headerNames[$header];
60 return $this->headers[$header];
65 return implode(', ', $this->getHeader($header));
70 $this->assertHeader($header);
71 $value = $this->normalizeHeaderValue($value);
74 $new = clone $this;
86 $this->assertHeader($header);
87 $value = $this->normalizeHeaderValue($value);
90 $new = clone $this;
92 $header = $this->headerNames[$normalized];
93 $new->headers[$header] = array_merge($this->headers[$header], $value);
106 if (!isset($this->headerNames[$normalized])) {
107 return $this;
110 $header = $this->headerNames[$normalized];
112 $new = clone $this;
120 if (!$this->stream) {
121 $this->stream = Utils::streamFor('');
124 return $this->stream;
129 if ($body === $this->stream) {
130 return $this;
133 $new = clone $this;
140 $this->headerNames = $this->headers = [];
147 $this->assertHeader($header);
148 $value = $this->normalizeHeaderValue($value);
150 if (isset($this->headerNames[$normalized])) {
151 $header = $this->headerNames[$normalized];
152 $this->headers[$header] = array_merge($this->headers[$header], $value);
154 $this->headerNames[$normalized] = $header;
155 $this->headers[$header] = $value;
168 return $this->trimAndValidateHeaderValues([$value]);
175 return $this->trimAndValidateHeaderValues($value);
203 $this->assertValue($trimmed);