Lines Matching refs:new
35 $new = clone $this;
36 $new->protocol = $version;
37 return $new;
74 $new = clone $this;
75 if (isset($new->headerNames[$normalized])) {
76 unset($new->headers[$new->headerNames[$normalized]]);
78 $new->headerNames[$normalized] = $header;
79 $new->headers[$header] = $value;
81 return $new;
90 $new = clone $this;
91 if (isset($new->headerNames[$normalized])) {
93 $new->headers[$header] = array_merge($this->headers[$header], $value);
95 $new->headerNames[$normalized] = $header;
96 $new->headers[$header] = $value;
99 return $new;
112 $new = clone $this;
113 unset($new->headers[$header], $new->headerNames[$normalized]);
115 return $new;
133 $new = clone $this;
134 $new->stream = $body;
135 return $new;