Imported Upstream version 3.2.0
[platform/upstream/libwebsockets.git] / minimal-examples / http-server / minimal-http-server-mimetypes / mount-origin / index.html
1 <html>
2  <head>
3   <meta charset=utf-8 http-equiv="Content-Language" content="en"/>
4   <script src="/example.js"></script>
5  </head>
6         <body>
7                 <img src="libwebsockets.org-logo.svg">
8                 <img src="strict-csp.svg"><br>
9
10                 Hello from the <b>minimal http server + mimetypes example</b>.
11                 <br>
12                 This shows how to teach a mount new bindings between file<br>
13                 suffix and mimetype used to serve it.<p>
14
15                 Lws has a bunch of built-in ones, but you can add as many<br>
16                 as you like when defining the mount.<p>
17
18                 For example, lws doesn't know the suffix <b>[.tar].bz2</b><br>
19                 implies the mimetype <i>application/x-bzip2</i>, but we taught<br>
20                 this mount about that relationship in the example code, so it<br>
21                 knows how to serve <a href="test.tar.bz2">this example test.tar.bz2</a>.
22         </body>
23 </html>
24