Body Decoder

The body-decoder 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:

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

See Also