<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>工具 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E5%B7%A5%E5%85%B7/</link><description>Recent content in 工具 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 26 Aug 2026 17:20:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E5%B7%A5%E5%85%B7/index.xml" rel="self" type="application/rss+xml"/><item><title>MiniWeb: 仅百KB的超轻量嵌入式 C 语言 HTTP 服务器</title><link>https://leafcxy.github.io/posts/2026/08/miniweb-http-server/</link><pubDate>Wed, 26 Aug 2026 17:20:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/08/miniweb-http-server/</guid><description>&lt;h2 id="引言"&gt;引言&lt;/h2&gt;
&lt;p&gt;在嵌入式开发、IoT 设备管理、本地工具调试甚至局域网临时文件共享中，我们经常需要一个轻量的 HTTP 服务端。但现实开发中常常遇到两难选择：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;标准 Web 服务器（如 Nginx、Apache）&lt;/strong&gt;：功能丰富，但体积过大、依赖繁杂，无法直接塞入 Flash 只有几兆的 MIPS/ARM 嵌入式设备中；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;脚本语言方案（如 Python &lt;code&gt;http.server&lt;/code&gt;）&lt;/strong&gt;：在本地开发机上很方便，但在没有 Python 运行时的工控机、单片机或最小化 Linux 系统中寸步难行。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;这时候，一个纯 C 语言编写、编译后二进制仅 100KB 左右的超微型 HTTP 服务器——&lt;strong&gt;MiniWeb&lt;/strong&gt;，便成了极具性价比的选择。&lt;/p&gt;</description></item></channel></rss>