You are here

public function SearchApiSolrConnection::setStreamContext in Search API Solr 7

Set the stream context to use for requests to the Solr server.

Must be a valid stream context as created by stream_context_create(). By default, no special stream context will be used.

Parameters

resource|null $stream_context: A valid stream context as created by stream_context_create(). Or NULL to use the default behavior.

Overrides SearchApiSolrConnectionInterface::setStreamContext

File

includes/solr_connection.inc, line 270

Class

SearchApiSolrConnection
Represents a Solr server resource.

Code

public function setStreamContext($stream_context) {
  $this->stream_context = $stream_context;
}