php-slim4-server.json_body_parser_middleware.mustache Maven / Gradle / Ivy
getHeaderLine('Content-Type');
if (strstr($contentType, 'application/json')) {
$contents = json_decode(file_get_contents('php://input'), true);
if (json_last_error() === JSON_ERROR_NONE) {
$request = $request->withParsedBody($contents);
}
}
return $handler->handle($request);
}
}
{{/apiInfo}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy