From 53264377faa0dc8a166e28d342e54ae7ad5df5d9 Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Tue, 14 Aug 2018 15:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91UM=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8E=9F=E7=90=86=E5=9B=BE=E7=89=87=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyong <1521761801@qq.com> --- .../{browse-http-Server.jpg => principle.jpg} | Bin docs/principle.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename docs/figures/{browse-http-Server.jpg => principle.jpg} (100%) diff --git a/docs/figures/browse-http-Server.jpg b/docs/figures/principle.jpg similarity index 100% rename from docs/figures/browse-http-Server.jpg rename to docs/figures/principle.jpg diff --git a/docs/principle.md b/docs/principle.md index 8d8f269..8c8bb43 100644 --- a/docs/principle.md +++ b/docs/principle.md @@ -2,7 +2,7 @@ WebClient 软件包主要用于在嵌入式设备上实现 HTTP 协议,软件包的主要工作原理基于 HTTP 协议实现,如下图所示: -![WebClient 软件包工作原理](figures/browse-http-server.jpg) +![WebClient 软件包工作原理](figures/principle.jpg) HTTP 协议定义了客户端如何从服务器请求数据,以及服务器如何把数据传送给客户端的方式。HTTP 协议采用了`请求/响应模型`。 客户端向服务器发送一个请求报文,请求报文包含请求的方法、URL、协议版本、请求头部和请求数据。服务器以一个状态行作为响应,响应的内容包括协议的版本、成功或者错误代码、服务器信息、响应头部和响应数据。