mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Adding net module and URLRequest class.
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user