Class ContentTypes
Content Types
This is middleware for a Slim application that intercepts the HTTP request body and parses it into the appropriate PHP data structure if possible; else it returns the HTTP request body unchanged. This is particularly useful for preparing the HTTP request body for an XML or JSON API.
- Slim\Middleware
-
Slim\Middleware\ContentTypes
Namespace: Slim\Middleware
Package: Slim
Author: Josh Lockhart
Since: 1.6.0
Located at thirdparty/Slim/Middleware/ContentTypes.php
Package: Slim
Author: Josh Lockhart
Since: 1.6.0
Located at thirdparty/Slim/Middleware/ContentTypes.php
public
|
|
public
|
|
protected
mixed
|
|
protected
array|string
|
|
protected
|
|
protected
array
|
getApplication(),
getNextMiddleware(),
setApplication(),
setNextMiddleware()
|
protected
array
|
$contentTypes | |
$app,
$next
|