PHP Класс Amp\Artax\FileBody

Наследование: implements Amp\Artax\AggregateBody
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $path )
getBody ( ) : Amp\Promise Retrieve the sendable Amp\Artax entity body representation
getHeaders ( ) : Amp\Promise Return a key-value array of headers to add to the outbound request
getLength ( ) : Amp\Promise Retrieve the entity body's content length

Описание методов

__construct() публичный метод

public __construct ( string $path )
$path string The filesystem path for the file we wish to send

getBody() публичный метод

Retrieve the sendable Amp\Artax entity body representation
public getBody ( ) : Amp\Promise
Результат Amp\Promise

getHeaders() публичный метод

Return a key-value array of headers to add to the outbound request
public getHeaders ( ) : Amp\Promise
Результат Amp\Promise

getLength() публичный метод

Retrieve the entity body's content length
public getLength ( ) : Amp\Promise
Результат Amp\Promise