PHP 인터페이스 Amp\Artax\AggregateBody

파일 보기 프로젝트 열기: amphp/artax 0 사용 예제들

공개 메소드들

메소드 설명
getBody ( ) : Amp\Promise Retrieve the HTTP message body to be sent
getHeaders ( ) : Amp\Promise Retrieve a key-value array of headers to add to the outbound request
getLength ( ) : Amp\Promise Retrieve the entity body's content length

메소드 상세

getBody() 공개 메소드

The resolved promise value may be a string or an Iterator. An event reactor is always passed to assist with asynchronous value resolution.
public getBody ( ) : Amp\Promise
리턴 Amp\Promise

getHeaders() 공개 메소드

The resolved promise value must be a key-value array mapping header fields to values. An event reactor is always passed to assist with asynchronous value resolution.
public getHeaders ( ) : Amp\Promise
리턴 Amp\Promise

getLength() 공개 메소드

The resolved value must either be an integer length or null if the entity body's content length is not known.
public getLength ( ) : Amp\Promise
리턴 Amp\Promise