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 StreamWrapper

Converts Guzzle streams into PHP stream resources.

Namespace: GuzzleHttp\Psr7
Located at src/StreamWrapper.php
Methods summary
public static resource
# getResource( Psr\Http\Message\StreamInterface $stream )

Returns a resource representing the stream.

Returns a resource representing the stream.

Parameters

$stream
The stream to get a resource for

Returns

resource

Throws

InvalidArgumentException
if stream is not readable or writable
public static
# register( )

Registers the stream wrapper if needed

Registers the stream wrapper if needed

public
# stream_open( $path, $mode, $options, & $opened_path )
public
# stream_read( $count )
public
# stream_write( $data )
public
# stream_tell( )
public
# stream_eof( )
public
# stream_seek( $offset, $whence )
public
# stream_stat( )
Properties summary
public resource $context
#
MercadoLibre PHP SDK API documentation generated by ApiGen