Previous Page
_parseCookie()

Solar_Http_Request_Adapter_Stream
_prepareContext()

Next Page
_prepareRequest()

_prepareContext()

protected resource _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