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 DroppingStream

Stream decorator that begins dropping data once the size of the underlying stream becomes too full.

GuzzleHttp\Psr7\DroppingStream implements Psr\Http\Message\StreamInterface uses GuzzleHttp\Psr7\StreamDecoratorTrait
Namespace: GuzzleHttp\Psr7
Located at src/DroppingStream.php
Methods summary
public
# __construct( Psr\Http\Message\StreamInterface $stream, integer $maxLength )

Parameters

$stream
Underlying stream to decorate.
$maxLength
Maximum size before dropping data.
public integer
# write( string $string )

Write data to the stream.

Write data to the stream.

Parameters

$string
The string that is to be written.

Returns

integer
Returns the number of bytes written to the stream.

Throws

RuntimeException
on failure.

Implementation of

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