mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-12 11:48:30 +00:00
- Implemented a search button in the header of each documentation page. - Added a search modal that allows users to input search queries. - Integrated a JavaScript search feature that fetches and displays results from a new `pages-data.json` file. - Each documentation page now includes a search overlay for improved navigation. - Updated the main JavaScript file to handle search logic, including result highlighting and navigation. - Created a `pages-data.json` file containing metadata for all documentation pages to facilitate search functionality.
142 lines
7.0 KiB
HTML
142 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ja" data-base-path="/cpp-httplib">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>A Tour of cpp-httplib - cpp-httplib</title>
|
|
<link rel="icon" type="image/svg+xml" href="/cpp-httplib/favicon.svg">
|
|
<link rel="stylesheet" href="/cpp-httplib/css/main.css">
|
|
<script>
|
|
(function() {
|
|
var t = localStorage.getItem('preferred-theme');
|
|
if (!t) t = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
|
|
if (t === 'light') document.documentElement.setAttribute('data-theme', 'light');
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header class="header">
|
|
<div class="header-inner">
|
|
<a href="/cpp-httplib/ja/" class="header-title">cpp-httplib <span style="font-size:0.75em;font-weight:normal;margin-left:4px">v0.35.0</span></a>
|
|
<div class="header-spacer"></div>
|
|
<nav class="header-nav">
|
|
<a href="/cpp-httplib/ja/">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
|
|
Home
|
|
</a>
|
|
|
|
|
|
<a href="/cpp-httplib/ja/tour/">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"/></svg>
|
|
Tour
|
|
</a>
|
|
|
|
|
|
|
|
<a href="https://github.com/yhirose/cpp-httplib" aria-label="GitHub">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/></svg>
|
|
GitHub
|
|
</a>
|
|
|
|
|
|
</nav>
|
|
<div class="header-tools">
|
|
<button class="search-btn" aria-label="Search (⌘K)">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
|
|
</button>
|
|
<button class="theme-toggle" aria-label="Toggle theme"></button>
|
|
<div class="lang-selector">
|
|
<button class="lang-btn" aria-label="Language">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
|
|
JA
|
|
</button>
|
|
<ul class="lang-popup">
|
|
|
|
<li><a href="#" data-lang="en">EN</a></li>
|
|
|
|
<li><a href="#" data-lang="ja">JA</a></li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<button class="sidebar-toggle" aria-label="Menu">☰</button>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
|
|
<div class="layout has-sidebar">
|
|
|
|
<aside class="sidebar">
|
|
<nav class="sidebar-nav">
|
|
|
|
<div class="nav-section">
|
|
<a href="/cpp-httplib/ja/tour/" class="nav-section-title active">A Tour of cpp-httplib</a>
|
|
|
|
<ul class="nav-list">
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/01-getting-started/" class="">Getting Started</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/02-basic-client/" class="">Basic Client</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/03-basic-server/" class="">Basic Server</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/04-static-file-server/" class="">Static File Server</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/05-tls-setup/" class="">TLS Setup</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/06-https-client/" class="">HTTPS Client</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/07-https-server/" class="">HTTPS Server</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/08-websocket/" class="">WebSocket</a></li>
|
|
|
|
<li><a href="/cpp-httplib/ja/tour/09-whats-next/" class="">What's Next</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
</aside>
|
|
<main class="content">
|
|
<article>
|
|
<h1>A Tour of cpp-httplib</h1>
|
|
<p>cpp-httplibの基本を、順番に学んでいくチュートリアルです。各章は前の章の内容を踏まえて進む構成なので、1章から順に読んでください。</p>
|
|
<ol>
|
|
<li><a href="01-getting-started">Getting Started</a> — httplib.h の入手とHello Worldサーバー</li>
|
|
<li><a href="02-basic-client">Basic Client</a> — GET/POST・パスパラメーターのリクエスト送信</li>
|
|
<li><a href="03-basic-server">Basic Server</a> — ルーティング、パスパラメーター、レスポンスの組み立て</li>
|
|
<li><a href="04-static-file-server">Static File Server</a> — 静的ファイルの配信</li>
|
|
<li><a href="05-tls-setup">TLS Setup</a> — OpenSSL / mbedTLS のセットアップ</li>
|
|
<li><a href="06-https-client">HTTPS Client</a> — HTTPSサイトへのリクエスト</li>
|
|
<li><a href="07-https-server">HTTPS Server</a> — HTTPSサーバーの構築</li>
|
|
<li><a href="08-websocket">WebSocket</a> — WebSocket通信の基本</li>
|
|
<li><a href="09-whats-next">What's Next</a> — さらなる機能の紹介</li>
|
|
</ol>
|
|
|
|
</article>
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
© 2026 yhirose. All rights reserved.
|
|
</footer>
|
|
|
|
<!-- Search modal -->
|
|
<div class="search-overlay" id="search-overlay">
|
|
<div class="search-modal">
|
|
<div class="search-input-wrap">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
|
|
<input type="text" id="search-input" placeholder="Search..." autocomplete="off" spellcheck="false">
|
|
<kbd class="search-esc">ESC</kbd>
|
|
</div>
|
|
<ul class="search-results" id="search-results"></ul>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/cpp-httplib/js/main.js"></script>
|
|
</body>
|
|
</html>
|