Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Server✓rschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog

PSR-7 — API

src/AppendStream.php

function __construct(array $streams = [])
function __toString(): string
function addStream(StreamInterface $stream): void
function getContents(): string
function close(): void
function detach()
function tell(): int
function getSize(): ?int
function eof(): bool
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function read($length): string
function isReadable(): bool
function isWritable(): bool
function isSeekable(): bool
function write($string): int
function getMetadata($key = null)

src/BufferStream.php

function __construct(int $hwm = 16384)
function __toString(): string
function getContents(): string
function close(): void
function detach()
function getSize(): ?int
function isReadable(): bool
function isWritable(): bool
function isSeekable(): bool
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function eof(): bool
function tell(): int
function read($length): string
function write($string): int
function getMetadata($key = null)

src/CachingStream.php

function __construct(StreamInterface $stream, StreamInterface $target = null)
function getSize(): ?int
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function read($length): string
function write($string): int
function eof(): bool
function close(): void

src/DroppingStream.php

function __construct(StreamInterface $stream, int $maxLength)
function write($string): int

src/FnStream.php

function __construct(array $methods)
function __get($name)
function __destruct()
function __wakeup()
static function decorate(StreamInterface $stream, array $methods): FnStream
function __toString(): string
function close(): void
function detach()
function getSize(): ?int
function tell(): int
function eof(): bool
function isSeekable(): bool
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function isWritable(): bool
function write($string): int
function isReadable(): bool
function read($length): string
function getContents(): string
function getMetadata($key = null)

src/InflateStream.php

function __construct(StreamInterface $stream)

src/LazyOpenStream.php

function __construct($filename, $mode)

src/LimitStream.php

function __construct(StreamInterface $stream, $limit = -1, $offset = 0)
function eof(): bool
function getSize(): ?int
function seek($offset, $whence = SEEK_SET): void
function tell(): int
function setOffset($offset)
function setLimit($limit)
function read($length): string

src/MessageTrait.php

function getProtocolVersion(): string
function withProtocolVersion($version): MessageInterface
function getHeaders(): array
function hasHeader($header): bool
function getHeader($header): array
function getHeaderLine($header): string
function withHeader($header, $value): MessageInterface
function withHeaders(array $headers): MessageInterface
function withAddedHeader($header, $value): MessageInterface
function withoutHeader($header): MessageInterface
function getBody(): StreamInterface|Stream|PumpStream
function withBody(StreamInterface $body): MessageInterface
function setHeaders(array $headers): Response|Request

src/MultipartStream.php

function __construct(array $elements = [], $boundary = null)
function getBoundary()
function isWritable(): false

src/NoSeekStream.php

function seek($offset, $whence = SEEK_SET): void
function isSeekable(): false

src/PumpStream.php

function __construct(callable $source, array $options = [])
function __toString(): string
function close(): void
function detach()
function getSize(): ?int
function tell(): int
function eof(): bool
function isSeekable(): bool
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function isWritable(): bool
function write($string): int
function isReadable(): bool
function read($length): string
function getContents(): string
function getMetadata($key = null)

src/Request.php

function __construct(string $method, UriInterface|string $uri, array $headers = [], StreamInterface|string $body = null, string $version = '1.1')
function getRequestTarget(): string
function withRequestTarget($requestTarget): Request|static
function getMethod(): string
function withMethod($method): Request|static
function getUri(): UriInterface
function withUri(UriInterface $uri, $preserveHost = false): Request|static

src/Response.php

function __construct(int $status = 200, array $headers = [], StreamInterface|string $body = null, string $version = '1.1', string $reason = null)
function getStatusCode(): int
function getReasonPhrase(): string
function withStatus($code, $reasonPhrase = ''): Response|static
function __toString()

src/Rfc7230.php

const HEADER_REGEX
const HEADER_FOLD_REGEX

src/ServerRequest.php

function __construct(string $http_buffer)
static function normalizeFiles(array $files): array
static function fromGlobals(): ServerRequest|ServerRequestInterface
static function getUriFromGlobals(): UriInterface
function getServerParams(): array
function getUploadedFiles(): array
function withUploadedFiles(array $uploadedFiles): ServerRequest|ServerRequestInterface|static
function getCookieParams(): array
function withCookieParams(array $cookies): ServerRequest|ServerRequestInterface|static
function getQueryParams(): array
function withQueryParams(array $query): ServerRequest|ServerRequestInterface|static
function getParsedBody(): object|array|null
function withParsedBody($data): ServerRequest|ServerRequestInterface|static
function getAttributes(): array
function getAttribute($name, $default = null)
function withAttribute($name, $value): ServerRequest|ServerRequestInterface|static
function withoutAttribute($name): ServerRequest|ServerRequestInterface|static

src/Stream.php

function __construct($stream, array $options = [])
function __destruct()
function __toString(): string
function getContents(): string
function close(): void
function detach()
function getSize(): ?int
function isReadable(): bool
function isWritable(): bool
function isSeekable(): bool
function eof(): bool
function tell(): int
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function read($length): string
function write($string): int
function getMetadata($key = null)

src/StreamDecoratorTrait.php

function __construct(StreamInterface $stream)
function __get(string $name)
function __toString(): string
function getContents(): string
function __call(string $method, array $args)
function close(): void
function getMetadata($key = null)
function detach()
function getSize(): ?int
function eof(): bool
function tell(): int
function isReadable(): bool
function isWritable(): bool
function isSeekable(): bool
function rewind(): void
function seek($offset, $whence = SEEK_SET): void
function read($length): string
function write($string): int

src/StreamWrapper.php

static function getResource(StreamInterface $stream)
static function createStreamContext(StreamInterface $stream)
static function register(): void
function stream_open($path, $mode, $options, &$opened_path): bool
function stream_read($count): string
function stream_write($data): int
function stream_tell(): int
function stream_eof(): bool
function stream_seek($offset, $whence): true
function stream_cast($cast_as)
function stream_stat(): array
function url_stat($path, $flags): array

src/UploadedFile.php

function __construct(StreamInterface|string $streamOrFile, int $size, int $errorStatus, string $clientFilename = null, string $clientMediaType = null)
function isMoved(): bool
function getStream(): StreamInterface
function moveTo(string $targetPath): void
function getSize(): ?int
function getError(): int
function getClientFilename(): ?string
function getClientMediaType(): ?string

src/Uri.php

function __construct(string $uri = '')
function __toString(): string
static function composeComponents(string $scheme, string $authority, string $path, string $query, string $fragment): string
static function isDefaultPort(UriInterface $uri): bool
static function isAbsolute(UriInterface $uri): bool
static function isNetworkPathReference(UriInterface $uri): bool
static function isAbsolutePathReference(UriInterface $uri): bool
static function isRelativePathReference(UriInterface $uri): bool
static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool
static function removeDotSegments(string $path): string
static function resolve(UriInterface $base, UriInterface|string $rel): UriInterface
static function withoutQueryValue(UriInterface $uri, string $key): UriInterface
static function withQueryValue(UriInterface $uri, string $key, ?string $value): UriInterface
static function fromParts(array $parts): UriInterface
function getScheme(): string
function getAuthority(): string
function getUserInfo(): string
function getHost(): string
function getPort(): ?int
function getPath(): string
function getQuery(): string
function getFragment(): string
function withScheme($scheme): Uri|static
function withUserInfo($user, $password = null): Uri|static
function withHost($host): Uri|static
function withPort($port): Uri|static
function withPath($path): Uri|static
function withQuery($query): Uri|static
function withFragment($fragment): Uri|static
const HTTP_DEFAULT_HOST

src/UriNormalizer.php

static function normalize(UriInterface $uri, int $flags = self::PRESERVING_NORMALIZATIONS): UriInterface
static function isEquivalent(UriInterface $uri1, UriInterface $uri2, int $normalizations = self::PRESERVING_NORMALIZATIONS): bool
const PRESERVING_NORMALIZATIONS
const CAPITALIZE_PERCENT_ENCODING
const DECODE_UNRESERVED_CHARACTERS
const CONVERT_EMPTY_PATH
const REMOVE_DEFAULT_HOST
const REMOVE_DEFAULT_PORT
const REMOVE_DOT_SEGMENTS
const REMOVE_DUPLICATE_SLASHES
const SORT_QUERY_PARAMETERS

src/UriResolver.php

static function removeDotSegments(string $path): string
static function resolve(UriInterface $base, UriInterface $rel): UriInterface|Uri
static function relativize(UriInterface $base, UriInterface $target): UriInterface