Method | Description | |
---|---|---|
decodeBody ( string $body, PicoFeed\Client\HttpHeaders $headers ) : string | Decode body response according to the HTTP headers. | |
decodeChunked ( string $str ) : string | Decode a chunked body. | |
doRequest ( ) : array | Do the HTTP request. |
Method | Description | |
---|---|---|
prepareContext ( ) : array | Prepare stream context. | |
prepareHeaders ( ) : string[] | Prepare HTTP headers. | |
setEffectiveUrl ( array $headers ) | Construct the final URL from location headers. |
public decodeBody ( string $body, PicoFeed\Client\HttpHeaders $headers ) : string | ||
$body | string | Raw body |
$headers | PicoFeed\Client\HttpHeaders | HTTP headers |
return | string |
public decodeChunked ( string $str ) : string | ||
$str | string | Raw body |
return | string | Decoded body |