Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DroppingStream.php

function DroppingStream::__construct

Parameters

StreamInterface $stream Underlying stream to decorate.:

int $maxLength Maximum size before dropping data.:

Overrides StreamDecoratorTrait::__construct

File

vendor/guzzlehttp/psr7/src/DroppingStream.php, line 27

Class

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

Namespace

GuzzleHttp\Psr7

Code

public function __construct(StreamInterface $stream, int $maxLength) {
    $this->stream = $stream;
    $this->maxLength = $maxLength;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal