We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923d4a7 commit d41f656Copy full SHA for d41f656
2 files changed
Request.php
@@ -50,6 +50,11 @@ public function getHeaders()
50
return $this->headers;
51
}
52
53
+ public function expectsContinue()
54
+ {
55
+ return isset($this->headers['Expect']) && '100-continue' === $this->headers['Expect'];
56
+ }
57
+
58
public function isReadable()
59
{
60
return $this->readable;
Response.php
@@ -24,6 +24,15 @@ public function isWritable()
24
return $this->writable;
25
26
27
+ public function writeContinue()
28
29
+ if ($this->headWritten) {
30
+ throw new \Exception('Response head has already been written.');
31
32
33
+ $this->conn->write("HTTP/1.1 100 Continue\r\n");
34
35
36
public function writeHead($status = 200, array $headers = array())
37
38
if ($this->headWritten) {
0 commit comments