File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Install: `npm install --save node-http-context`
7
7
8
8
``` js
9
9
const express = require (' express' );
10
- const httpContext = require (' node-http-context' );
10
+ const HttpContext = require (' node-http-context' );
11
11
12
12
const app = express ();
13
13
// Initialize Httpcontext middleware service
@@ -18,20 +18,20 @@ HttpContext.Initilize(app);
18
18
Get HttpContext form anywhare:
19
19
20
20
``` js
21
- const httpContext = require (' node-http-context' );
21
+ const HttpContext = require (' node-http-context' );
22
22
23
23
// Node express request object from HttpContext
24
- httpContext .Request ;
24
+ HttpContext .Request ;
25
25
26
26
// Node express response object from HttpContext
27
- httpContext .Response .send (HTML / STRING );
28
- httpContext .Response .json ({JSON_Object});
27
+ HttpContext .Response .send (HTML / STRING );
28
+ HttpContext .Response .json ({JSON_Object});
29
29
30
30
// Node express Next object from HttpContext
31
- httpContext .Next ();
31
+ HttpContext .Next ();
32
32
33
33
// Node express session object from HttpContext
34
- httpContext .Session ;
34
+ HttpContext .Session ;
35
35
```
36
36
37
37
## Contributors
You can’t perform that action at this time.
0 commit comments