FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-geocoder/lib/httpadapter/httpsadapter.js at master · DevMagic/node-geocoder · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
DevMagic
/
node-geocoder
Public
forked from
nchaulet/node-geocoder
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-geocoder
/
lib
/
httpadapter
/
httpsadapter.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (20 loc) · 589 Bytes
Breadcrumbs
node-geocoder
/
lib
/
httpadapter
/
httpsadapter.js
Copy path
File metadata and controls
26 lines (20 loc) · 589 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
26
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
)
{
if
(
!
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
;
Back
|
FazBrowse Home
|
New Git URL