File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ public function getHeaders()
5050 return $ this ->headers ;
5151 }
5252
53+ public function expectsContinue ()
54+ {
55+ return isset ($ this ->headers ['Expect ' ]) && '100-continue ' === $ this ->headers ['Expect ' ];
56+ }
57+
5358 public function isReadable ()
5459 {
5560 return $ this ->readable ;
Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ public function isWritable()
2424 return $ this ->writable ;
2525 }
2626
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+
2736 public function writeHead ($ status = 200 , array $ headers = array ())
2837 {
2938 if ($ this ->headWritten ) {
You can’t perform that action at this time.
0 commit comments