\EasyWeChat\Kernel\HttpResponse

Class Response.

Summary

Methods
Properties
Constants
getBodyContents()
buildFromPsrResponse()
toJson()
toArray()
toCollection()
toObject()
__toString()
No public properties found
No constants found
removeControlCharacters()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getBodyContents()

getBodyContents() : string

Returns

string

buildFromPsrResponse()

buildFromPsrResponse(\Psr\Http\Message\ResponseInterface  $response) : \EasyWeChat\Kernel\Http\Response

Parameters

\Psr\Http\Message\ResponseInterface $response

Returns

\EasyWeChat\Kernel\Http\Response

toJson()

toJson() : string

Build to json.

Returns

string

toArray()

toArray() : array

Build to array.

Returns

array

toObject()

toObject() : object

Returns

object

__toString()

__toString() : boolean|string

Returns

boolean|string

removeControlCharacters()

removeControlCharacters(string  $content) : string

Parameters

string $content

Returns

string