lib/popcorn: introduce middleware examples
[nit.git] / lib / popcorn / tests / res / test_example_html_error_handler.res
diff --git a/lib/popcorn/tests/res/test_example_html_error_handler.res b/lib/popcorn/tests/res/test_example_html_error_handler.res
new file mode 100644 (file)
index 0000000..3015280
--- /dev/null
@@ -0,0 +1,23 @@
+
+[Client] curl -s localhost:*****/
+               <!DOCTYPE html>
+               <html>
+               <head>
+                       <meta charset="utf-8">
+                       <title>An error occurred!</title>
+               </head>
+               <body>
+               <h1>404 An error occurred!</h1>
+               </body>
+               </html>
+[Client] curl -s localhost:*****/about
+               <!DOCTYPE html>
+               <html>
+               <head>
+                       <meta charset="utf-8">
+                       <title>An error occurred!</title>
+               </head>
+               <body>
+               <h1>404 An error occurred!</h1>
+               </body>
+               </html>
\ No newline at end of file