Overview

Namespaces

  • Docta
    • MercadoLibre
      • OAuth2
        • Client
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
    • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Token
        • Tool
  • 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
  • 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 NoSeekStream

Stream decorator that prevents a stream from being seeked

GuzzleHttp\Psr7\NoSeekStream implements Psr\Http\Message\StreamInterface uses GuzzleHttp\Psr7\StreamDecoratorTrait
Namespace: GuzzleHttp\Psr7
Located at src/NoSeekStream.php
Methods summary
public
# seek( integer $offset, integer $whence = SEEK_SET )

Seek to a position in the stream.

Seek to a position in the stream.

Parameters

$offset
Stream offset
$whence

Specifies how the cursor position will be calculated based on the seek offset. Valid values are identical to the built-in PHP $whence values for fseek(). SEEK_SET: Set position equal to offset bytes SEEK_CUR: Set position to current location plus offset SEEK_END: Set position to end-of-stream plus offset.

Throws

RuntimeException
on failure.

Link

http://www.php.net/manual/en/function.fseek.php

Implementation of

Psr\Http\Message\StreamInterface::seek()
public boolean
# isSeekable( )

Returns whether or not the stream is seekable.

Returns whether or not the stream is seekable.

Returns

boolean

Implementation of

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