2022-06-04 15:23:25 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-08-06 02:44:55 +08:00
|
|
|
<!-- Generator: Adobe Illustrator 26.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
2022-06-04 15:23:25 +08:00
|
|
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
2022-08-06 02:44:55 +08:00
|
|
|
viewBox="0 0 1034 663.54" style="enable-background:new 0 0 1034 663.54;" xml:space="preserve">
|
2022-06-04 15:23:25 +08:00
|
|
|
<style type="text/css">
|
|
|
|
.st0{fill:none;stroke:#45CFFF;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
|
|
|
|
.st1{fill:#45CFFF;}
|
|
|
|
.st2{fill:#576174;}
|
2022-08-06 02:44:55 +08:00
|
|
|
.st3{fill:#FFFFFF;}
|
|
|
|
.st4{font-family:'Courier-Bold';}
|
|
|
|
.st5{font-size:16.7604px;}
|
|
|
|
.st6{font-family:'Arial-BoldMT';}
|
|
|
|
.st7{font-size:24px;}
|
|
|
|
.st8{fill:#67748A;}
|
|
|
|
.st9{fill:#8B9CBA;}
|
|
|
|
.st10{fill:none;stroke:#00CF4F;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
|
|
|
|
.st11{fill:#00CF4F;}
|
|
|
|
.st12{fill:none;stroke:#EA5B0C;stroke-width:2.793;stroke-linecap:round;stroke-linejoin:round;}
|
|
|
|
.st13{fill:#EA5B0C;}
|
|
|
|
.st14{fill:#414857;}
|
2022-06-04 15:23:25 +08:00
|
|
|
</style>
|
|
|
|
<g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<polyline class="st0" points="498.5,624.21 498.5,628.21 447.9,628.21 447.9,624.21 "/>
|
2022-06-04 15:23:25 +08:00
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st0" d="M491.8,844.81"/>
|
|
|
|
<g>
|
|
|
|
<path class="st1" d="M473.8,636.11c-1.8,0-3.2,1.4-3.3,3.2c0,1.8,1.4,3.2,3.2,3.3c1.8,0,3.2-1.4,3.3-3.2l0,0
|
|
|
|
C477.1,637.61,475.6,636.11,473.8,636.11z"/>
|
|
|
|
</g>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st1" d="M296.7,852.71c-1.8,0-3.2,1.3-3.3,3c0,1.7,1.4,3,3.2,3c1.8,0,3.2-1.3,3.3-3l0,0
|
|
|
|
C299.9,854.01,298.5,852.71,296.7,852.71z"/>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st2" d="M584.6,199.01H8.5c-4.7,0-8.5-3.8-8.5-8.5V60.71c0-4.7,3.8-8.5,8.5-8.5h576.1c4.7,0,8.5,3.8,8.5,8.5v129.8
|
|
|
|
C593.1,195.21,589.3,199.01,584.6,199.01z"/>
|
2022-06-04 15:23:25 +08:00
|
|
|
<g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<g>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 90.8107)" class="st3 st4 st5">struct mg_http_part part;</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 110.9108)" class="st3 st4 st5">size_t pos = 0;</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 151.1107)" class="st3 st4 st5">pos = mg_http_next_multipart(&hm->body, pos, &part);</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 171.3107)" class="st3 st4 st5">pos = mg_http_next_multipart(&hm->body, pos, &part);</text>
|
|
|
|
</g>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<text transform="matrix(1 0 0 1 1.3738 40.559)" class="st6 st7">Source Code</text>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<g>
|
|
|
|
<path class="st8" d="M685.5,646.41H8.5c-4.7,0-8.5-3.8-8.5-8.5v-362.9c0-4.7,3.8-8.5,8.5-8.5h677c4.7,0,8.5,3.8,8.5,8.5v362.9
|
|
|
|
C694,642.61,690.2,646.41,685.5,646.41z"/>
|
|
|
|
</g>
|
|
|
|
<path class="st9" d="M640.2,629.41H26.3c-4.7,0-8.5-3.8-8.5-8.5v-106.5c0-4.7,3.8-8.5,8.5-8.5h613.9c4.7,0,8.5,3.8,8.5,8.5v106.5
|
|
|
|
C648.7,625.61,644.8,629.41,640.2,629.41z"/>
|
|
|
|
<path class="st9" d="M644,490.91H30.1c-4.7,0-8.5-3.8-8.5-8.5v-106.5c0-4.7,3.8-8.5,8.5-8.5H644c4.7,0,8.5,3.8,8.5,8.5v106.5
|
|
|
|
C652.5,487.11,648.7,490.91,644,490.91z"/>
|
|
|
|
<g>
|
|
|
|
<text transform="matrix(1 0 0 1 0.0299 253.0343)" class="st6 st7">HTTP message</text>
|
|
|
|
</g>
|
|
|
|
<g>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 302.8107)" class="st3 st4 st5">POST /upload HTTP/1.1 </text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 322.9107)" class="st3 st4 st5">Content-Type: multipart/form-data; boundary="--xyz"</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 363.1107)" class="st3 st4 st5">--xyz</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 383.3107)" class="st3 st4 st5">Content-Disposition: form-data; name="foo"; filename="a.txt"</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 403.4107)" class="st3 st4 st5">Content-Type: text/plain</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 443.6107)" class="st3 st4 st5">hello world</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 483.8107)" class="st3 st4 st5">--xyz---</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 524.0107)" class="st3 st4 st5">Content-Disposition: form-data; name="bar"; filename="b.txt"</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 544.2108)" class="st3 st4 st5">Content-Type: text/plain</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 584.4108)" class="st3 st4 st5">hello world again</text>
|
|
|
|
<text transform="matrix(1 0 0 1 28.7 624.6107)" class="st3 st4 st5">--xyz--</text>
|
|
|
|
</g>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
<g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<polyline class="st10" points="569.5,162.51 574.5,162.51 574.5,176.11 569.5,176.11 "/>
|
2022-06-04 15:23:25 +08:00
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st0" d="M726.8,392.91"/>
|
|
|
|
<g>
|
|
|
|
<polyline class="st10" points="587.3,169.71 726.7,169.71 726.6,569.31 684.3,569.31 "/>
|
|
|
|
<path class="st11" d="M585,166.41c-1.8,0-3.2,1.4-3.3,3.2c0,1.8,1.4,3.2,3.2,3.3c1.8,0,3.2-1.4,3.3-3.2l0,0
|
|
|
|
C588.2,167.91,586.8,166.41,585,166.41z"/>
|
|
|
|
</g>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st11" d="M685,566.31c-1.7,0-3,1.3-3,3s1.3,3,3,3s3-1.3,3-3l0,0C688,567.61,686.6,566.31,685,566.31z"/>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<polyline class="st10" points="657.9,501.61 673.9,501.61 673.9,634.21 657.9,634.21 "/>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
<g>
|
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<polyline class="st12" points="569.5,143.21 574.5,143.21 574.5,156.81 569.5,156.81 "/>
|
2022-06-04 15:23:25 +08:00
|
|
|
<g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st0" d="M726.8,254.61"/>
|
|
|
|
<g>
|
|
|
|
<polyline class="st12" points="587.3,150.41 710.7,150.41 710.6,431.01 684.3,431.01 "/>
|
|
|
|
<path class="st13" d="M585,147.11c-1.8,0-3.2,1.4-3.3,3.2s1.4,3.2,3.2,3.3c1.8,0,3.2-1.4,3.3-3.2l0,0
|
|
|
|
C588.2,148.61,586.8,147.11,585,147.11z"/>
|
|
|
|
</g>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<path class="st13" d="M685,428.01c-1.7,0-3,1.3-3,3s1.3,3,3,3s3-1.3,3-3l0,0C688,429.31,686.6,428.01,685,428.01z"/>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<polyline class="st12" points="657.9,363.31 673.9,363.31 673.9,495.91 657.9,495.91 "/>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
2022-08-06 02:44:55 +08:00
|
|
|
<text transform="matrix(1 0 0 1 537.9671 462.1467)" class="st14 st6 st7">Part 1</text>
|
|
|
|
<text transform="matrix(1 0 0 1 537.9671 600.4373)" class="st14 st6 st7">Part 2</text>
|
2022-06-04 15:23:25 +08:00
|
|
|
</g>
|
|
|
|
</svg>
|