'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

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

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
var _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized);
var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
var _possibleConstructorReturn__default = /*#__PURE__*/_interopDefaultLegacy(_possibleConstructorReturn);
var _getPrototypeOf__default = /*#__PURE__*/_interopDefaultLegacy(_getPrototypeOf);
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var Request = /*#__PURE__*/function (_IncomingMessage) {
  _inherits__default['default'](Request, _IncomingMessage);

  var _super = _createSuper(Request);

  function Request(socket) {
    var _this;

    _classCallCheck__default['default'](this, Request);

    _this = _super.call(this, socket);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "error", false);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "startedAt", null);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "endedAt", null);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "files", {});

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "query", {});

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "body", {});

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "data", {});

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "buffer", Buffer.alloc(0));

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "entityTooLarge", false);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "encrypted", false);

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "hostname", '');

    _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "method", void 0);

    return _this;
  }

  return Request;
}(http.IncomingMessage);

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