Google News
logo
Slim Framework - Interview Questions
What is Media type detection in Slim Framework?
* The middleware reads the Content-Type from the request header to detect the media type.
* Checks if this specific media type has a parser registered
* If not, look for a media type with a structured syntax suffix (RFC 6839), e.g. application/*

Supported media types : 
* application/json
* application/x-www-form-urlencoded
* application/xml
* text/xml
Advertisement