index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="en" data-base-path="&#x2F;cpp-httplib">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>A Tour of cpp-httplib - cpp-httplib</title>
  7. <link rel="stylesheet" href="&#x2F;cpp-httplib/css/main.css">
  8. <script>
  9. (function() {
  10. var t = localStorage.getItem('preferred-theme');
  11. if (!t) t = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
  12. if (t === 'light') document.documentElement.setAttribute('data-theme', 'light');
  13. })();
  14. </script>
  15. </head>
  16. <body>
  17. <header class="header">
  18. <div class="header-inner">
  19. <a href="&#x2F;cpp-httplib/en/" class="header-title">cpp-httplib <span style="font-size:0.75em;font-weight:normal;margin-left:4px">v0.35.0</span></a>
  20. <div class="header-spacer"></div>
  21. <nav class="header-nav">
  22. <a href="&#x2F;cpp-httplib/en/">Home</a>
  23. <a href="&#x2F;cpp-httplib/en/tour/">Tour</a>
  24. </nav>
  25. <div class="header-tools">
  26. <button class="theme-toggle" aria-label="Toggle theme"></button>
  27. <div class="lang-selector">
  28. <button class="lang-btn" aria-label="Language">EN</button>
  29. <ul class="lang-popup">
  30. <li><a href="#" data-lang="en">EN</a></li>
  31. <li><a href="#" data-lang="ja">JA</a></li>
  32. </ul>
  33. </div>
  34. </div>
  35. <button class="sidebar-toggle" aria-label="Menu">&#9776;</button>
  36. </div>
  37. </header>
  38. <div class="layout has-sidebar">
  39. <aside class="sidebar">
  40. <nav class="sidebar-nav">
  41. <div class="nav-section">
  42. <a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;" class="nav-section-title active">A Tour of cpp-httplib</a>
  43. <ul class="nav-list">
  44. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;01-getting-started&#x2F;" class="">Getting Started</a></li>
  45. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;02-basic-client&#x2F;" class="">Basic Client</a></li>
  46. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;03-basic-server&#x2F;" class="">Basic Server</a></li>
  47. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;04-static-file-server&#x2F;" class="">Static File Server</a></li>
  48. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;05-tls-setup&#x2F;" class="">TLS Setup</a></li>
  49. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;06-https-client&#x2F;" class="">HTTPS Client</a></li>
  50. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;07-https-server&#x2F;" class="">HTTPS Server</a></li>
  51. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;08-websocket&#x2F;" class="">WebSocket</a></li>
  52. <li><a href="&#x2F;cpp-httplib&#x2F;en&#x2F;tour&#x2F;09-whats-next&#x2F;" class="">What&#x27;s Next</a></li>
  53. </ul>
  54. </div>
  55. </nav>
  56. </aside>
  57. <main class="content">
  58. <article>
  59. <h1>A Tour of cpp-httplib</h1>
  60. <p>This is a step-by-step tutorial that walks you through the basics of cpp-httplib. Each chapter builds on the previous one, so please read them in order starting from Chapter 1.</p>
  61. <ol>
  62. <li><a href="01-getting-started">Getting Started</a> — Get httplib.h and build a Hello World server</li>
  63. <li><a href="02-basic-client">Basic Client</a> — Send GET/POST requests and use path parameters</li>
  64. <li><a href="03-basic-server">Basic Server</a> — Routing, path parameters, and building responses</li>
  65. <li><a href="04-static-file-server">Static File Server</a> — Serve static files</li>
  66. <li><a href="05-tls-setup">TLS Setup</a> — Set up OpenSSL / mbedTLS</li>
  67. <li><a href="06-https-client">HTTPS Client</a> — Make requests to HTTPS sites</li>
  68. <li><a href="07-https-server">HTTPS Server</a> — Build an HTTPS server</li>
  69. <li><a href="08-websocket">WebSocket</a> — Learn the basics of WebSocket communication</li>
  70. <li><a href="09-whats-next">What's Next</a> — Explore more features</li>
  71. </ol>
  72. </article>
  73. </main>
  74. </div>
  75. <footer class="footer">
  76. &copy; 2026 yhirose. All rights reserved.
  77. </footer>
  78. <script src="&#x2F;cpp-httplib/js/main.js"></script>
  79. </body>
  80. </html>