Adding net module and URLRequest class.
This commit is contained in:
parent
46cd8708a4
commit
e8d4abe78f
8 changed files with 203 additions and 0 deletions
|
@ -107,6 +107,12 @@ Object.defineProperties(exports, {
|
|||
return require('../web-contents')
|
||||
}
|
||||
},
|
||||
//net: {
|
||||
// enumerable: true,
|
||||
// get: function () {
|
||||
// return require('../net')
|
||||
// }
|
||||
//},
|
||||
|
||||
// The internal modules, invisible unless you know their names.
|
||||
NavigationController: {
|
||||
|
|
13
lib/browser/api/net.js
Normal file
13
lib/browser/api/net.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
'use strict'
|
||||
|
||||
const binding = process.atomBinding('net')
|
||||
const {URLRequest} = binding
|
||||
|
||||
// Public API.
|
||||
Object.defineProperties(exports, {
|
||||
URLRequest: {
|
||||
enumerable: true,
|
||||
value: URLRequest
|
||||
}
|
||||
})
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue