Adding net module and URLRequest class.

This commit is contained in:
ali.ibrahim 2016-09-15 15:59:40 +02:00
parent 46cd8708a4
commit e8d4abe78f
8 changed files with 203 additions and 0 deletions

View file

@ -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
View 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
}
})