createRequestFromStreamContext()
public static method
If an existing Request is given, the stream context options
are set on the specified Request object.
public static createRequestFromStreamContext ( resource $context, string $path, Request $existing = null ) : Request |
$context |
resource |
Stream context resource. |
$path |
string |
Path to use as url. |
$existing |
VCR\Request |
Optional, existing request. |
return |
VCR\Request |
|
getHttpOptionsFromContext()
protected static method
Returns HTTP options from current stream context.