~sanderd/stipvis/trunk

« back to all changes in this revision

Viewing changes to server/main.js

  • Committer: Sander Dijkhuis
  • Date: 2009-01-09 23:52:24 UTC
  • Revision ID: sander.dijkhuis@gmail.com-20090109235224-kt3t2p9r1amazjih
Changed some documentation syntax details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
// starts.  The {{{StipvisServer}}} object in C is supplied by the
44
44
// {{{cServer}}} argument.
45
45
//
46
 
// In this function, a Web server is created and initialized.  The user gets
47
 
// told its URL.  Also, the services are loaded here.
 
46
// In this function, a {{{SoupServer}}} is created and initialized.  The user
 
47
// is told its URL.  Also, the services are loaded here.
48
48
 
49
49
stipvis.init = function(cServer) {
50
50
    let serverPort = 8000;
66
66
// This function gets called by the Web server when a HTTP request is
67
67
// received.  The arguments:
68
68
//
69
 
// * {{{message}}} is the {{{Soup.Message}}} object containing all request
 
69
// * {{{message}}} is the {{{SoupMessage}}} object containing all request
70
70
//   headers.
71
71
//
72
72
// * {{{path}}} is the requested URL path.
73
73
//
74
74
// * {{{query}}} is a table containing variable-value pairs for the URL query.
75
75
//
76
 
// * {{{clientContext}}} is the {{{SoupClientContext}}} object containing
 
76
// * {{{clientContext}}} is the {{{SoupClientContext}}} structure containing
77
77
//   information about the HTTP client.
78
78
//
79
79
// By reading the first path of the requested path, it is decided how to