Nexus API Reference

SwooleRequestTranslator
in package

FinalYes
Tags
psalm-api

Maps a Swoole\Http\Request into a PSR-7 ServerRequest backed by nyholm/psr7.

Swoole\Http\Request exposes $server, $header, $cookie, $get, $post, $files as untyped properties (the stubs don't model them precisely). The runtime guarantees these are arrays or null; every access is narrowed with an explicit runtime guard.

Table of Contents

Methods

toPsr7()  : ServerRequestInterface

Methods

toPsr7()

public static toPsr7(Request $req) : ServerRequestInterface
Parameters
$req : Request
Return values
ServerRequestInterface
On this page

Search results