public function decode(string $method, string $stream, string $contentType, int $contentLength, decoder\DecoderOptions $options = null) { $options = $options ?? new decoder\DecoderOptions(); # if the `enable_post_data_reading` ini setting is on # use the already parsed $_POST and $_FILES data if ($method === "POST" && !\sndsgd\Str::beginsWith($contentType, "application/json") && $options->getPostDataReadingEnabled()) { return $this->parsePost(); } $decoder = $this->getDecoder($stream, $contentType, $contentLength, $options); return $decoder->decode(); }