|pretty||JSON (Encoded with |
If driver is available, this viewport will be based on XML_Serializer. If our XML_Serializer fails, we will fall back to the SimpleXMLElement class.
|phpserialize||A php serialized string|
|A string based on print_r()|
Example: https://api-dev.tornevall.net/2.0/dnsbl/getEntriesCount/type/fraudbl?viewport=pretty&viewmode=tinyComing soon: Better explaining of ViewPorts.
Compression and encoding
There are undocumented and untested support for compression, that can be called by using encode=<encodeType>. The output format will be a double encoded result string that looks like this, and are named as their methods:
The response itself is the real rendered response. The supported encoding are listed below.
|Compression type||Method||Level||Response key||Other info|
|md5||md5||-||md5EncodedResponse||This is actually only a testing function and won't compress anything|