Dancer::Serializer::Mutable man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

Dancer::Serializer::MuUsereContributed Perl DocuDancer::Serializer::Mutable(3)

NAME
       Dancer::Serializer::Mutable - (De)Serialize content using the
       appropriate HTTP header

SYNOPSIS
DESCRIPTION
       This serializer will try find the best (de)serializer for a given
       request.	 For this, it will go through:

       ·   The content_type from the request headers

       ·   the content_type parameter from the URL

       ·   the accept from the request headers

       ·   The default is application/json

   METHODS
   serialize
       Serialize a data structure. The format it is serialized to is
       determined automatically as described above. It can be one of YAML,
       XML, JSON, defaulting to JSON if there's no clear preference from the
       request.

   deserialize
       Deserialize the provided serialized data to a data structure.  The type
       of serialization format depends on the request's content-type. For now,
       it can be one of YAML, XML, JSON.

   content_type
       Returns the content-type that was used during the last "serialize" /
       "deserialize" call. WARNING : you must call "serialize" / "deserialize"
       before calling "content_type". Otherwise the return value will be
       "undef".

perl v5.14.1			  2011-06-15	Dancer::Serializer::Mutable(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net