HumHub Documentation (unofficial)

ResponseBodyResourceStream
in package
implements ResultStream

Provides a ResultStream from a resource filled by an HTTP response body.

Tags
author

Jérémy Derussé jeremy@derusse.com

Table of Contents

Interfaces

ResultStream
Stream for a Result.

Properties

$resource  : resource

Methods

__construct()  : mixed
__toString()  : string
getChunks()  : iterable<string|int, string>
Download the response in chunks.
getContentAsResource()  : resource
Download content into a resource and then return that resource.
getContentAsString()  : string
Download content into a temporary resource and return a string.

Properties

Methods

getChunks()

Download the response in chunks.

public getChunks() : iterable<string|int, string>
Return values
iterable<string|int, string>

getContentAsResource()

Download content into a resource and then return that resource.

public getContentAsResource() : resource
Return values
resource

getContentAsString()

Download content into a temporary resource and return a string.

public getContentAsString() : string
Return values
string

        
On this page

Search results