PHP 클래스 GuzzleHttp\Psr7\MultipartStream

상속: implements Psr\Http\Message\StreamInterface, use trait GuzzleHttp\Psr7\StreamDecoratorTrait
파일 보기 프로젝트 열기: nystudio107/instantanalytics 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $elements = [], string $boundary = null )
getBoundary ( ) : string Get the boundary
isWritable ( )

보호된 메소드들

메소드 설명
createStream ( array $elements ) Create the aggregate stream that will be used to upload the POST data

비공개 메소드들

메소드 설명
addElement ( GuzzleHttp\Psr7\AppendStream $stream, array $element )
createElement ( $name, Psr\Http\Message\StreamInterface $stream, $filename, array $headers ) : array
getHeader ( array $headers, $key )
getHeaders ( array $headers ) Get the headers needed before transferring the content of a POST file

메소드 상세

__construct() 공개 메소드

public __construct ( array $elements = [], string $boundary = null )
$elements array Array of associative arrays, each containing a required "name" key mapping to the form field, name, a required "contents" key mapping to a StreamInterface/resource/string, an optional "headers" associative array of custom headers, and an optional "filename" key mapping to a string to send as the filename in the part.
$boundary string You can optionally provide a specific boundary

createStream() 보호된 메소드

Create the aggregate stream that will be used to upload the POST data
protected createStream ( array $elements )
$elements array

getBoundary() 공개 메소드

Get the boundary
public getBoundary ( ) : string
리턴 string

isWritable() 공개 메소드

public isWritable ( )