Implement URLRequest::Delegate, handle thread sync.
This commit is contained in:
parent
e8d4abe78f
commit
7521aeea09
8 changed files with 229 additions and 22 deletions
|
@ -1,13 +1,12 @@
|
|||
'use strict'
|
||||
|
||||
const {EventEmitter} = require('events')
|
||||
const binding = process.atomBinding('net')
|
||||
const {URLRequest} = binding
|
||||
const {net, Net} = binding
|
||||
const {URLRequest} = net
|
||||
|
||||
// Public API.
|
||||
Object.defineProperties(exports, {
|
||||
URLRequest: {
|
||||
enumerable: true,
|
||||
value: URLRequest
|
||||
}
|
||||
})
|
||||
Object.setPrototypeOf(Net.prototype, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(URLRequest.prototype, EventEmitter.prototype)
|
||||
|
||||
module.exports = net
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue