Added example that loads several images as a stress test. This does not currently work.
This commit is contained in:
parent
2ed2e6f636
commit
86b00f922c
BIN
http/cars-ferrari.jpg
Normal file
BIN
http/cars-ferrari.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
BIN
http/cars-lambo.jpg
Normal file
BIN
http/cars-lambo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
http/cars-mas.jpg
Normal file
BIN
http/cars-mas.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
http/cars-porsche.jpg
Normal file
BIN
http/cars-porsche.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
17
http/cars.html
Normal file
17
http/cars.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>Nice cars</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Nice cars!</h1>
|
||||
<p>This page loads "large" images of fancy cars. It is meant to serve as a stress test for nodemcu-httpserver.</p>
|
||||
<figure><img src="cars-ferrari.jpg" /><figcaption>Ferrari</figcaption></figure>
|
||||
<figure><img src="cars-lambo.jpg" /><figcaption>Lamborghini</figcaption></figure>
|
||||
<figure><img src="cars-mas.jpg" /><figcaption>maserati</figcaption></figure>
|
||||
<figure><img src="cars-porsche.jpg" /><figcaption>Porsche</figcaption></figure>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
<h3>Serve me some pages!</h3>
|
||||
<ul>
|
||||
<li><a href="index.html">Index</a>: This page (static)</li>
|
||||
<li><a href="cars.html">Nice cars</a>: Stress test, loads 4 "large" images. Makes the chip panic and restart :( (static)</li>
|
||||
<li><a href="zipped.html">Zipped</a>: File is actually saved as zipped.html.gz. A compressed file! (static but gzipped)</li>
|
||||
<li><a href="zipped.html.gz">Zipped</a>: Same exact file as served above. Server is smart enough to treat the .gz extension correctly (static but gzipped)</li>
|
||||
<li><a href="args.lua">Arguments</a>: Parses arguments passed in the URL and prints them. (Lua)</li>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user