wzp
2021-05-13 7d694a9113118daec5be7ac224dab46a3b20f106
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2012 Mark Cavage, Inc.  All rights reserved.
 
'use strict';
///--- Exports
 
/**
 * Format a response for being sent over the wire
 *
 * @public
 * @typedef {Function} formatter
 * @param    {Object} req - the request object (not used)
 * @param    {Object} res - the response object
 * @param    {Object} body - response body to format
 * @returns  {String} formatted response data
 */
 
module.exports = {
    'application/javascript; q=0.1': require('./jsonp'),
    'application/json; q=0.4': require('./json'),
    'text/plain; q=0.3': require('./text'),
    'application/octet-stream; q=0.2': require('./binary')
};