'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/possibleConstructorReturn'));
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf'));
var _assertThisInitialized = _interopDefault(require('@babel/runtime/helpers/assertThisInitialized'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
var http = require('http');

var Request =
/*#__PURE__*/
function (_IncomingMessage) {
  _inherits(Request, _IncomingMessage);

  function Request(socket) {
    var _this;

    _classCallCheck(this, Request);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Request).call(this, socket));

    _defineProperty(_assertThisInitialized(_this), "error", false);

    _defineProperty(_assertThisInitialized(_this), "startedAt", null);

    _defineProperty(_assertThisInitialized(_this), "endedAt", null);

    _defineProperty(_assertThisInitialized(_this), "files", {});

    _defineProperty(_assertThisInitialized(_this), "query", {});

    _defineProperty(_assertThisInitialized(_this), "body", {});

    _defineProperty(_assertThisInitialized(_this), "data", {});

    _defineProperty(_assertThisInitialized(_this), "buffer", Buffer.alloc(0));

    _defineProperty(_assertThisInitialized(_this), "entityTooLarge", false);

    _defineProperty(_assertThisInitialized(_this), "encrypted", false);

    _defineProperty(_assertThisInitialized(_this), "hostname", '');

    _defineProperty(_assertThisInitialized(_this), "method", 'all');

    return _this;
  }

  return Request;
}(http.IncomingMessage);

module.exports = Request;
//# sourceMappingURL=Request.js.map
