UNPKG

974 BJavaScriptView Raw
1/***************************************************************************
2 *
3 * Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
4 * $Id$
5 *
6 **************************************************************************/
7
8
9
10/**
11 * base.js ~ 2014/02/25 21:39:54
12 * @author leeight(liyubei@baidu.com)
13 * @version $Revision$
14 * @description
15 *
16 **/
17exports.getContext = function() {
18 var request = {};
19 var response = {};
20
21 var context = {
22 request : request,
23 response : response,
24 conf : require( './edp-webserver-config.js' ),
25 status : 200,
26 content : '',
27 header : {},
28 end: function () {
29 // response.end();
30 },
31 stop: function () {
32 // isWait = true;
33 },
34 start: function () {
35 // isWait = false;
36 // nextHandler();
37 }
38 };
39
40 return context;
41}
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62/* vim: set ts=4 sw=4 sts=4 tw=100: */