Skip to content

Commit c64e52c

Browse files
authored
Merge pull request #472 from ali-ince/2.0-remove-http-driver
Remove HTTP Driver Support
2 parents a71a4fc + 0adca20 commit c64e52c

11 files changed

+2
-2208
lines changed

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import RoutingDriver from './routing-driver'
3939
import VERSION from './version'
4040
import { assertString, isEmptyObjectOrNull } from './internal/util'
4141
import urlUtil from './internal/url-util'
42-
import HttpDriver from './internal/http/http-driver'
4342
import { isPoint, Point } from './spatial-types'
4443
import {
4544
Date,
@@ -260,8 +259,6 @@ function driver (url, authToken, config = {}) {
260259
authToken,
261260
config
262261
)
263-
} else if (parsedUrl.scheme === 'http' || parsedUrl.scheme === 'https') {
264-
return new HttpDriver(parsedUrl, USER_AGENT, authToken, config)
265262
} else {
266263
throw new Error(`Unknown scheme: ${parsedUrl.scheme}`)
267264
}

src/internal/connection-holder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class ConnectionHolder {
116116
/**
117117
* Return the current pooled connection instance to the connection pool.
118118
* We don't pool Session instances, to avoid users using the Session after they've called close.
119-
* The `Session` object is just a thin wrapper around ChannelConnection anyway, so it makes little difference.
119+
* The `Session` object is just a thin wrapper around Connection anyway, so it makes little difference.
120120
* @return {Promise} - promise resolved then connection is returned to the pool.
121121
* @private
122122
*/
@@ -162,7 +162,7 @@ class EmptyConnectionHolder extends ConnectionHolder {
162162
function ignoreError (error) {}
163163

164164
/**
165-
* ChannelConnection holder that does not manage any connections.
165+
* Connection holder that does not manage any connections.
166166
* @type {ConnectionHolder}
167167
*/
168168
export const EMPTY_CONNECTION_HOLDER = new EmptyConnectionHolder()

src/internal/http/http-driver.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/internal/http/http-request-runner.js

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)