You are here

constant RequestOptions::EXPECT in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/RequestOptions.php \GuzzleHttp\RequestOptions::EXPECT

expect: (bool|integer) Controls the behavior of the "Expect: 100-Continue" header.

Set to `true` to enable the "Expect: 100-Continue" header for all requests that sends a body. Set to `false` to disable the "Expect: 100-Continue" header for all requests. Set to a number so that the size of the payload must be greater than the number in order to send the Expect header. Setting to a number will send the Expect header for all requests in which the size of the payload cannot be determined or where the body is not rewindable.

By default, Guzzle will add the "Expect: 100-Continue" header when the size of the body of a request is greater than 1 MB and a request is using HTTP/1.1.

File

vendor/guzzlehttp/guzzle/src/RequestOptions.php, line 111

Class

RequestOptions
This class contains a list of built-in Guzzle request options.

Namespace

GuzzleHttp

Code

const EXPECT = 'expect';