@@ 185-192 (lines=8) @@ | ||
182 | * |
|
183 | * @throws \LogicException If request was not a redirect |
|
184 | */ |
|
185 | public function followRedirect() |
|
186 | { |
|
187 | $p = $this->beforeRedirect(); |
|
188 | $this->isMainRequestExtended = false; |
|
189 | $response = $this->request($p['method'], $this->redirect, $p['parameters'], $p['files'], $p['server'], $p['content']); |
|
190 | $this->isMainRequestExtended = true; |
|
191 | return $response; |
|
192 | } |
|
193 | ||
194 | /** |
|
195 | * Follow redirects asynchronously? |
|
@@ 201-208 (lines=8) @@ | ||
198 | * |
|
199 | * @throws \LogicException If request was not a redirect |
|
200 | */ |
|
201 | public function followRedirectAsync() |
|
202 | { |
|
203 | $p = $this->beforeRedirect(); |
|
204 | $this->isMainRequestExtended = false; |
|
205 | $response = (yield $this->requestAsync($p['method'], $this->redirect, $p['parameters'], $p['files'], $p['server'], $p['content'])); |
|
206 | $this->isMainRequestExtended = true; |
|
207 | yield CoInterface::RETURN_WITH => $response; |
|
208 | } |
|
209 | ||
210 | /** |
|
211 | * @param string $method |