BODYDECODER()

NAME
bodyDecoder

Body Decoder
The bodyDecoder middleware sniffs the Content-Type header, and decodes the request body appropriately. Supported by default are the application/x-www-form-urlencoded, and application/json content types. To extend simply:

    connect.bodyDecoder.decode['some-mime/type'] = function(str){
        return 'whatever';
    };

  See Also

•   methodOverride