Prado\Util\TRpcClient::createStreamContext PHP Метод

createStreamContext() защищенный Метод

Creates a stream context resource
protected createStreamContext ( mixed $content, string $contentType )
$content mixed
$contentType string mime type
    protected function createStreamContext($content, $contentType)
    {
        return stream_context_create(array('http' => array('method' => 'POST', 'header' => "Content-Type: {$contentType}", 'content' => $content)));
    }