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

Breadcrumb

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

function StreamInterface::detach

Separates any underlying resources from the stream.

After the stream has been detached, the stream is in an unusable state.

Return value

resource|null Underlying PHP stream, if any

5 methods override StreamInterface::detach()
AppendStream::detach in vendor/guzzlehttp/psr7/src/AppendStream.php
Detaches each attached stream.
BufferStream::detach in vendor/guzzlehttp/psr7/src/BufferStream.php
Separates any underlying resources from the stream.
FnStream::detach in vendor/guzzlehttp/psr7/src/FnStream.php
Separates any underlying resources from the stream.
PumpStream::detach in vendor/guzzlehttp/psr7/src/PumpStream.php
Separates any underlying resources from the stream.
Stream::detach in vendor/guzzlehttp/psr7/src/Stream.php
Separates any underlying resources from the stream.

File

vendor/psr/http-message/src/StreamInterface.php, line 44

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function detach();

API Navigation

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