bootdesk/chat-sdk

RequestContext
in package

Table of Contents

Properties

$body  : string
$cookies  : array<string|int, mixed>
$headers  : array<string|int, mixed>
$method  : string
$parsedBody  : array<string|int, mixed>|null
$queryParams  : array<string|int, mixed>
$requestAttributes  : array<string|int, mixed>
$serverParams  : array<string|int, mixed>
$uri  : string
$version  : string

Methods

__construct()  : mixed
fromServerRequest()  : self
toPsrRequest()  : ServerRequestInterface

Properties

$parsedBody read-only

public array<string|int, mixed>|null $parsedBody

$queryParams read-only

public array<string|int, mixed> $queryParams

$requestAttributes read-only

public array<string|int, mixed> $requestAttributes = []

$serverParams read-only

public array<string|int, mixed> $serverParams

Methods

__construct()

public __construct(string $method, string $uri, array<string|int, mixed> $headers, string $body, array<string|int, mixed> $queryParams, array<string|int, mixed>|null $parsedBody, array<string|int, mixed> $serverParams, array<string|int, mixed> $cookies, string $version[, array<string|int, mixed> $requestAttributes = [] ]) : mixed
Parameters
$method : string
$uri : string
$headers : array<string|int, mixed>
$body : string
$queryParams : array<string|int, mixed>
$parsedBody : array<string|int, mixed>|null
$serverParams : array<string|int, mixed>
$cookies : array<string|int, mixed>
$version : string
$requestAttributes : array<string|int, mixed> = []

fromServerRequest()

public static fromServerRequest(ServerRequestInterface $request) : self
Parameters
$request : ServerRequestInterface
Return values
self

toPsrRequest()

public toPsrRequest() : ServerRequestInterface
Return values
ServerRequestInterface
On this page

Search results