Solar_Http_Request_Adapter_Stream::_prepareContext()

protected resource Solar_Http_Request_Adapter_Stream::_prepareContext ( array $headers , string $content )

Builds the stream context from property options for _fetch().

Parameters

  • (array) $headers: A sequential array of headers.

  • (string) $content: The body content.

Returns

  • (resource) A stream context resource for "http" and "https" protocols.

Description

Builds the stream context from property options for _fetch().

See Also



Local