Initial commit
This commit is contained in:
84
node_modules/neo4j-driver/lib/v1/internal/http/http-driver.js
generated
vendored
Normal file
84
node_modules/neo4j-driver/lib/v1/internal/http/http-driver.js
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
||||
|
||||
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
||||
|
||||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
||||
|
||||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
||||
|
||||
var _createClass2 = require('babel-runtime/helpers/createClass');
|
||||
|
||||
var _createClass3 = _interopRequireDefault(_createClass2);
|
||||
|
||||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
||||
|
||||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
||||
|
||||
var _inherits2 = require('babel-runtime/helpers/inherits');
|
||||
|
||||
var _inherits3 = _interopRequireDefault(_inherits2);
|
||||
|
||||
var _driver = require('../../driver');
|
||||
|
||||
var _driver2 = _interopRequireDefault(_driver);
|
||||
|
||||
var _httpSession = require('./http-session');
|
||||
|
||||
var _httpSession2 = _interopRequireDefault(_httpSession);
|
||||
|
||||
var _httpSessionTracker = require('./http-session-tracker');
|
||||
|
||||
var _httpSessionTracker2 = _interopRequireDefault(_httpSessionTracker);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var HttpDriver = function (_Driver) {
|
||||
(0, _inherits3.default)(HttpDriver, _Driver);
|
||||
|
||||
function HttpDriver(hostPort, userAgent, token, config) {
|
||||
(0, _classCallCheck3.default)(this, HttpDriver);
|
||||
|
||||
var _this = (0, _possibleConstructorReturn3.default)(this, (HttpDriver.__proto__ || (0, _getPrototypeOf2.default)(HttpDriver)).call(this, hostPort, userAgent, token, config));
|
||||
|
||||
_this._sessionTracker = new _httpSessionTracker2.default();
|
||||
return _this;
|
||||
}
|
||||
|
||||
(0, _createClass3.default)(HttpDriver, [{
|
||||
key: 'session',
|
||||
value: function session() {
|
||||
return new _httpSession2.default(this._hostPort, this._token, this._config, this._sessionTracker);
|
||||
}
|
||||
}, {
|
||||
key: 'close',
|
||||
value: function close() {
|
||||
return this._sessionTracker.close();
|
||||
}
|
||||
}]);
|
||||
return HttpDriver;
|
||||
}(_driver2.default); /**
|
||||
* Copyright (c) 2002-2018 "Neo4j,"
|
||||
* Neo4j Sweden AB [http://neo4j.com]
|
||||
*
|
||||
* This file is part of Neo4j.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
exports.default = HttpDriver;
|
||||
Reference in New Issue
Block a user