PHP Class Amp\Artax\FileBody

Inheritance: implements Amp\Artax\AggregateBody
Afficher le fichier Open project: amphp/artax

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

getBody() public méthode

Retrieve the sendable Amp\Artax entity body representation
public getBody ( ) : Amp\Promise
Résultat Amp\Promise

getHeaders() public méthode

Return a key-value array of headers to add to the outbound request
public getHeaders ( ) : Amp\Promise
Résultat Amp\Promise

getLength() public méthode

Retrieve the entity body's content length
public getLength ( ) : Amp\Promise
Résultat Amp\Promise