You are here

public function SearchApiSolrConnectionInterface::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.

1 method overrides SearchApiSolrConnectionInterface::setStreamContext()
SearchApiSolrConnection::setStreamContext in includes/solr_connection.inc
Set the stream context to use for requests to the Solr server.

File

includes/solr_connection.interface.inc, line 57

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public function setStreamContext($stream_context);