File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 224
224
```
225
225
The switch statement is used to select the code according to the URL given, and other methods provide access to parameters of the HTTP request.
226
226
<hr />
227
- ![ page1] ( doc/page1.png )
227
+ ![ page1] ( https://github.com/petercorke/simple-threads-coder/blob/master/ doc/page1.png)
228
228
``` shell
229
229
2018-09-16 15:54:28.635937 [user] user program starts
230
230
2018-09-16 15:54:28.636843 [user] web server starting on port 8080
@@ -238,7 +238,7 @@ Note the arguements `?a=7&b=12` on the end of the URL. These are GET arguments o
238
238
239
239
Note also, that log messages from the web server function are listed as coming from the ` WEB ` thread, which is created by ` webserver() ` .
240
240
<hr />
241
- ![ page2] ( doc/page2.png )
241
+ ![ page2] ( https://github.com/petercorke/simple-threads-coder/blob/master/ doc/page2.png)
242
242
243
243
``` shell
244
244
2018-09-16 15:39:12.816790 [WEB] web: GET request using HTTP/1.1 for URL /page2
@@ -260,7 +260,7 @@ The template file is sent to the browser with substitutions. The `page2.html`
260
260
```
261
261
and the values of the fields of the struct ` vals ` are substituted for the corresonding named ` TMPL_VAR ` tags.
262
262
<hr />
263
- ![ duck] ( doc/duck.png )
263
+ ![ duck] ( https://github.com/petercorke/simple-threads-coder/blob/master/ doc/duck.png)
264
264
265
265
``` shell
266
266
2018-09-16 15:36:08.881139 [WEB] web: GET request using HTTP/1.1 for URL /duck
@@ -269,7 +269,7 @@ and the values of the fields of the struct `vals` are substituted for the corres
269
269
```
270
270
The local file ` duck.png ` is sent to the browser as an ` image/jpeg ` filetype.
271
271
<hr />
272
- ![ post] ( doc/post.png )
272
+ ![ post] ( https://github.com/petercorke/simple-threads-coder/blob/master/ doc/post.png)
273
273
274
274
``` shell
275
275
2018-09-16 16:32:00.035029 [user] web: GET request using HTTP/1.1 for URL /input
You can’t perform that action at this time.
0 commit comments