From dc486a2aa3f67a27218fb3a0e488ea452327ea4b Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 31 May 2022 12:01:06 +0100 Subject: [PATCH] Add pics --- docs/images/mg_http_part.svg | 83 +++++++++++++++++++++++++++++++++++ docs/images/mg_http_reply.svg | 82 ++++++++++++++++++++++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 docs/images/mg_http_part.svg create mode 100644 docs/images/mg_http_reply.svg diff --git a/docs/images/mg_http_part.svg b/docs/images/mg_http_part.svg new file mode 100644 index 00000000..296b6ed8 --- /dev/null +++ b/docs/images/mg_http_part.svg @@ -0,0 +1,83 @@ + + + + + + + + + POST /upload HTTP/1.1 Content-Type: multipart/form-data: boundary="--xyz"--xyzContent-Disposition: form-data; name="foo"; filename="a.txt"Content-Type: text/plainhello world--xyz--- + + +HTTP part +HTTP message + + + + struct mg_http_part { + struct mg_str name;strucy mg_str filename;struct mg_str body; + + + + + + + + + + + + + + + + + + + + + + + + + +Source Code +}; + + + + + + + + + + + diff --git a/docs/images/mg_http_reply.svg b/docs/images/mg_http_reply.svg new file mode 100644 index 00000000..16c00128 --- /dev/null +++ b/docs/images/mg_http_reply.svg @@ -0,0 +1,82 @@ + + + + + + + + + HTTP/1.1 200 OK + Content-Length; 13 + X-Header-1: additional value 1 + X-Header-2: additional value 2 + Hello, World! + + +HTTP message + + + mg_http_reply(c, 200 + "X-Header-1: additional value 1\r\n" + "X-Header-1: additional value 2\r\n", + "Hello, %s!", "world"); + + + + + + + + + + + + + + + + + + + + + + + +Source Code + + + + + + + + + + + +