com\setasign\SetaFramework\Middleware

JsonDecoder Class JsonDecoder

File: /SetaFramework/src/Middleware/JsonDecoder.php

Class hierarchy

Implements

  • \Psr\Http\Server\MiddlewareInterface

Summary

Properties

$assoc

protected JsonDecoder::$assoc = true

$maxDepth

protected JsonDecoder::$maxDepth = 512

$options

protected JsonDecoder::$options = 0

Methods

__construct()

public JsonDecoder::__construct (
bool $assoc = true,
int $maxDepth = 512,
int $options = 0
)
Parameters
$assoc: bool
 
$maxDepth: int
 
$options: int
 

process()

public JsonDecoder::process (
\Psr\Http\Message\ServerRequestInterface $request,
\Psr\Http\Server\RequestHandlerInterface $handler
): \Psr\Http\Message\ResponseInterface
Parameters
$request: \Psr\Http\Message\ServerRequestInterface
 
$handler: \Psr\Http\Server\RequestHandlerInterface