Implement URLRequest::Delegate, handle thread sync.

This commit is contained in:
ali.ibrahim 2016-09-19 11:21:09 +02:00
parent e8d4abe78f
commit 7521aeea09
8 changed files with 229 additions and 22 deletions

View file

@ -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