PHP 클래스 Amp\Artax\FileBody

상속: implements Amp\Artax\AggregateBody
파일 보기 프로젝트 열기: amphp/artax

공개 메소드들

메소드 설명
__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