@@ -30,7 +30,7 @@ END_NODE_INCLUDE
30
30
var http = { } ;
31
31
32
32
/**
33
- * @typedef {function(http.ServerRequest , http.ServerResponse) }
33
+ * @typedef {function(http.IncomingMessage , http.ServerResponse) }
34
34
*/
35
35
http . requestListener ;
36
36
@@ -60,63 +60,65 @@ http.Server.prototype.close = function() {};
60
60
61
61
/**
62
62
* @constructor
63
- * @extends events.EventEmitter
64
- * @private
63
+ * @extends stream.Readable
65
64
*/
66
- http . ServerRequest = function ( ) { } ;
65
+ http . IncomingMessage = function ( ) { } ;
67
66
68
67
/**
69
- * @type {string }
68
+ * @type {? string }
70
69
* */
71
- http . ServerRequest . prototype . method ;
70
+ http . IncomingMessage . prototype . method ;
72
71
73
72
/**
74
- * @type {string }
73
+ * @type {? string }
75
74
*/
76
- http . ServerRequest . prototype . url ;
75
+ http . IncomingMessage . prototype . url ;
77
76
78
77
/**
79
78
* @type {Object }
80
79
* */
81
- http . ServerRequest . prototype . headers ;
80
+ http . IncomingMessage . prototype . headers ;
82
81
83
82
/**
84
83
* @type {Object }
85
84
* */
86
- http . ServerRequest . prototype . trailers ;
85
+ http . IncomingMessage . prototype . trailers ;
87
86
88
87
/**
89
88
* @type {string }
90
89
*/
91
- http . ServerRequest . prototype . httpVersion ;
90
+ http . IncomingMessage . prototype . httpVersion ;
92
91
93
92
/**
94
93
* @type {string }
95
94
*/
96
- http . ServerRequest . prototype . httpVersionMajor ;
95
+ http . IncomingMessage . prototype . httpVersionMajor ;
97
96
98
97
/**
99
98
* @type {string }
100
99
*/
101
- http . ServerRequest . prototype . httpVersionMinor ;
100
+ http . IncomingMessage . prototype . httpVersionMinor ;
102
101
103
102
/**
104
- * @param { ?string } encoding
103
+ * @type { * }
105
104
*/
106
- http . ServerRequest . prototype . setEncoding = function ( encoding ) { } ;
105
+ http . IncomingMessage . prototype . connection ;
107
106
108
107
/**
108
+ * @type {?number }
109
109
*/
110
- http . ServerRequest . prototype . pause = function ( ) { } ;
110
+ http . IncomingMessage . prototype . statusCode ;
111
111
112
112
/**
113
+ * @type {net.Socket }
113
114
*/
114
- http . ServerRequest . prototype . resume = function ( ) { } ;
115
+ http . IncomingMessage . prototype . socket ;
115
116
116
117
/**
117
- * @type {* }
118
+ * @param {number } msecs
119
+ * @param {function() } callback
118
120
*/
119
- http . ServerRequest . prototype . connection ;
121
+ http . IncomingMessage . prototype . setTimeout = function ( msecs , callback ) { } ;
120
122
121
123
/**
122
124
* @constructor
@@ -198,66 +200,16 @@ http.ClientRequest.prototype.end = function(data, encoding) {};
198
200
*/
199
201
http . ClientRequest . prototype . abort = function ( ) { } ;
200
202
201
- /**
202
- * @constructor
203
- * @extends events.EventEmitter
204
- * @private
205
- */
206
- http . ClientResponse = function ( ) { } ;
207
-
208
- /**
209
- * @type {number }
210
- */
211
- http . ClientResponse . prototype . statusCode ;
212
-
213
- /**
214
- * @type {string }
215
- */
216
- http . ClientResponse . prototype . httpVersion ;
217
-
218
- /**
219
- * @type {string }
220
- */
221
- http . ClientResponse . prototype . httpVersionMajor ;
222
-
223
- /**
224
- * @type {string }
225
- */
226
- http . ClientResponse . prototype . httpVersionMinor ;
227
-
228
- /**
229
- * @type {Object }
230
- * */
231
- http . ClientResponse . prototype . headers ;
232
-
233
- /**
234
- * @type {Object }
235
- * */
236
- http . ClientResponse . prototype . trailers ;
237
-
238
- /**
239
- * @param {?string } encoding
240
- */
241
- http . ClientResponse . prototype . setEncoding = function ( encoding ) { } ;
242
-
243
- /**
244
- */
245
- http . ClientResponse . prototype . pause = function ( ) { } ;
246
-
247
- /**
248
- */
249
- http . ClientResponse . prototype . resume = function ( ) { } ;
250
-
251
203
/**
252
204
* @param {Object } options
253
- * @param {function(http.ClientResponse ) } callback
205
+ * @param {function(http.IncomingMessage ) } callback
254
206
* @return {http.ClientRequest }
255
207
*/
256
208
http . request = function ( options , callback ) { } ;
257
209
258
210
/**
259
211
* @param {Object } options
260
- * @param {function(http.ClientResponse ) } callback
212
+ * @param {function(http.IncomingMessage ) } callback
261
213
* @return {http.ClientRequest }
262
214
*/
263
215
http . get = function ( options , callback ) { } ;
0 commit comments