Sha256: 5fc5fb2b6c5a4f9043973ecee08050654aed714a2787feabdcb46d2ee77503c4

Contents?: true

Size: 685 Bytes

Versions: 35

Compression:

Stored size: 685 Bytes

Contents

var AWS = require('../core');

AWS.util.update(AWS.APIGateway.prototype, {
/**
 * Sets the Accept header to application/json.
 *
 * @api private
 */
  setAcceptHeader: function setAcceptHeader(req) {
    var httpRequest = req.httpRequest;
    httpRequest.headers['Accept'] = 'application/json';
  },

  /**
   * @api private
   */
  setupRequestListeners: function setupRequestListeners(request) {
    request.addListener('build', this.setAcceptHeader);
    if (request.operation === 'getExport') {
      var params = request.params || {};
      if (params.exportType === 'swagger') {
        request.addListener('extractData', AWS.util.convertPayloadToString);
      }
    }
  }
});

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/services/apigateway.js