Set the size that the entity body of the request must exceed before adding the Expect: 100-Continue header.
int|bool $size Cutoff in bytes. Set to false to never send the expect header (even with non-seekable data):
self
public function setExpectHeaderCutoff($size) {
$this->expectCutoff = $size;
if ($size === false || !$this->body) {
$this
->removeHeader('Expect');
}
elseif ($this->body && $this->body
->getSize() && $this->body
->getSize() > $size) {
$this
->setHeader('Expect', '100-Continue');
}
return $this;
}