Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 377 Bytes

File metadata and controls

11 lines (7 loc) · 377 Bytes

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