File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/node_modules/@stdlib/net/http-server/docs Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 37
37
Examples
38
38
--------
39
39
// Basic usage:
40
- > var httpServer = {{alias}}()
40
+ > var boot = {{alias}}()
41
41
<Function>
42
42
43
43
// Provide a request callback:
44
44
> function onRequest( request, response ) {
45
45
... console.log( request.url );
46
46
... response.end( 'OK' );
47
47
... };
48
- > httpServer = {{alias}}( onRequest )
48
+ > boot = {{alias}}( onRequest )
49
49
<Function>
50
50
51
51
// Specify a specific port:
52
52
> var opts = { 'port': 7331 };
53
- > httpServer = {{alias}}( opts )
53
+ > boot = {{alias}}( opts )
54
54
<Function>
55
55
56
56
57
- httpServer ( done )
57
+ boot ( done )
58
58
Creates an HTTP server.
59
59
60
60
Parameters
@@ -71,8 +71,8 @@ httpServer( done )
71
71
... console.log( 'Success!' );
72
72
... server.close();
73
73
... };
74
- > var httpServer = {{alias}}();
75
- > httpServer ( done );
74
+ > var boot = {{alias}}();
75
+ > boot ( done );
76
76
77
77
See Also
78
78
--------
You can’t perform that action at this time.
0 commit comments