def hypermedia_in():
 ct_in_map = {'application/x-www-form-urlencoded': urlencoded_processor, 'application/json': json_processor, 'application/x-yaml': yaml_processor, 'text/yaml': yaml_processor, 'text/plain': text_processor}
 if ((cherrypy.request.method.upper() == 'POST') and (cherrypy.request.headers.get('Content-Length', '0') == '0')):
  cherrypy.request.process_request_body = False
  cherrypy.request.unserialized_data = None
 cherrypy.request.body.processors.clear()
 cherrypy.request.body.default_proc = cherrypy.HTTPError(406, 'Content type not supported')
 cherrypy.request.body.processors = ct_in_map

def hypermedia_in ( ) : ct_in_map = { 'application/x-www-form-urlencoded' : urlencoded_processor , 'application/json' : json_processor , 'application/x-yaml' : yaml_processor , 'text/yaml' : yaml_processor , 'text/plain' : text_processor } if ( ( cherrypy . request . method . upper ( ) == 'POST' ) and ( cherrypy . request . headers . get ( 'Content-Length' , '0' ) == '0' ) ) : cherrypy . request . process_request_body = False cherrypy . request . unserialized_data = None cherrypy . request . body . processors . clear ( ) cherrypy . request . body . default_proc = cherrypy . HTTPError ( 406 , 'Content type not supported' ) cherrypy . request . body . processors = ct_in_map
unserialize post/put data of a specified content-type .