Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • AppendStream
  • BufferStream
  • CachingStream
  • DroppingStream
  • FnStream
  • InflateStream
  • LazyOpenStream
  • LimitStream
  • MultipartStream
  • NoSeekStream
  • PumpStream
  • Request
  • Response
  • ServerRequest
  • Stream
  • StreamWrapper
  • UploadedFile
  • Uri
  • UriNormalizer
  • UriResolver

Traits

  • MessageTrait
  • StreamDecoratorTrait

Functions

  • build_query
  • copy_to_stream
  • copy_to_string
  • fread
  • hash
  • mimetype_from_extension
  • mimetype_from_filename
  • modify_request
  • normalize_header
  • parse_header
  • parse_query
  • parse_request
  • parse_response
  • readline
  • rewind_body
  • str
  • stream_for
  • try_fopen
  • uri_for
  • Overview
  • Namespace
  • Class
  • Download

Class MultipartStream

Stream that when read returns bytes for a streaming multipart or multipart/form-data stream.

GuzzleHttp\Psr7\MultipartStream implements Psr\Http\Message\StreamInterface uses GuzzleHttp\Psr7\StreamDecoratorTrait
Namespace: GuzzleHttp\Psr7
Located at src/MultipartStream.php
Methods summary
public
# __construct( array $elements = [], string $boundary = null )

Parameters

$elements

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
You can optionally provide a specific boundary

Throws

InvalidArgumentException
public string
# getBoundary( )

Get the boundary

Get the boundary

Returns

string
public boolean
# isWritable( )

Returns whether or not the stream is writable.

Returns whether or not the stream is writable.

Returns

boolean

Implementation of

Psr\Http\Message\StreamInterface::isWritable()
protected
# createStream( array $elements )

Create the aggregate stream that will be used to upload the POST data

Create the aggregate stream that will be used to upload the POST data

Methods inherited from Psr\Http\Message\StreamInterface
__toString(), close(), detach(), eof(), getContents(), getMetadata(), getSize(), isReadable(), isSeekable(), read(), rewind(), seek(), tell(), write()
Methods used from GuzzleHttp\Psr7\StreamDecoratorTrait
__call(), __get(), __toString(), close(), detach(), eof(), getContents(), getMetadata(), getSize(), isReadable(), isSeekable(), read(), rewind(), seek(), tell(), write()
MercadoLibre PHP SDK API documentation generated by ApiGen