# All files / lib/httpadapter httpsadapter.js

100% Statements 12/12
50% Branches 2/4
100% Functions 2/2
100% Lines 12/12

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    261x
    1x

    1x
    7x
    7x

    7x
    7x
    7x

    1x
    5x

    1x

    1x
     var HttpAdapter = require('./httpadapter.js');
    var util = require('util');

    /**
    * HttpsAdapter
    * @param <object>   http      an optional http instance to use
    * @param <object>   options   additional options to set on the request
    */
    var HttpsAdapter = function(http,options) {
      Eif (!http || http === 'undefined') {
        http = require('https');
      }

      this.url = require('url');
      this.http = http;
      this.options = options;
    };

    HttpAdapter.prototype.supportsHttps = function() {
      return true;
    };

    util.inherits(HttpsAdapter, HttpAdapter);

    module.exports = HttpsAdapter;