ParseStream

Class ParseStream - Wrapper for abstracted stream usage

author

Ben Friedman [email protected]

package

Parse\HttpClients

Methods

Create a stream context

createContext(array $options) 

Arguments

$options

array

Options to pass to our context

Gets the contents from the given url

get(string $url) : string

Arguments

$url

string

Url to get contents of

Response

string

Gest the current error code

getErrorCode() : integer

Response

integer

Gets the current error message

getErrorMessage() : string

Response

string

Returns the response headers for the last request

getResponseHeaders() : array

Response

array

Properties

Stream context

stream : resource
var

Type(s)

resource

Response headers

responseHeaders : array|null
var

Type(s)

array|null

Error message

errorMessage : string
var

Type(s)

string

Error code

errorCode : integer
var

Type(s)

integer