| $data .= "Content-type: text/plain\r\n"; | ||
| $data .= "\r\n"; | ||
| $data .= "world\r\n"; | ||
| $data .= str_repeat('world', 1024) . "\r\n"; |
| } | ||
|
|
||
| $this->sizeLimit = $sizeLimit; | ||
| $this->sizeLimit = IniUtil::iniSizeToBytes($sizeLimit); |
| } | ||
|
|
||
| $this->uploadMaxFilesize = (int)$uploadMaxFilesize; | ||
| $this->uploadMaxFilesize = IniUtil::iniSizeToBytes($uploadMaxFilesize); |
|
|
||
| /** | ||
| * @param int|null $uploadMaxFilesize | ||
| * @param int|string|null $uploadMaxFilesize |
| 'GET', | ||
| 'https://example.com/', | ||
| array(), | ||
| new HttpBodyStream($stream, 2) |
| * configuration. (Note that the value from | ||
| * the CLI configuration will be used.) | ||
| * @param int|string|null $sizeLimit Either an int with the max request body size | ||
| * or an ini like sze string |
| * or null to use post_max_size from PHP's | ||
| * configuration. (Note that the value from | ||
| * the CLI configuration will be used.) | ||
| * @param int|string|null $sizeLimit Either an int with the max request body size |
jsor approved these changes Dec 12, 2017
clue approved these changes Dec 12, 2017