mongoose/docs/images/mg_http_message.svg

107 lines
5.9 KiB
XML
Raw Normal View History

2022-05-29 19:59:33 +08:00
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<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"
viewBox="0 0 1035.4 429.9" style="enable-background:new 0 0 1035.4 429.9;" xml:space="preserve">
<style type="text/css">
.st0{fill:#576174;}
.st1{fill:#67748A;}
.st2{fill:none;stroke:#87005B;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
.st3{fill:#87005B;}
.st4{fill:#FFFFFF;}
.st5{font-family:'Courier'; font-weight: bold; }
.st6{font-size:16.7604px;}
.st7{enable-background:new ;}
.st8{fill:none;stroke:#EA5B0C;stroke-width:2.793;stroke-linecap:round;stroke-linejoin:round;}
.st9{fill:#EA5B0C;}
.st10{fill:none;stroke:#CA70FF;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
.st11{fill:#CA70FF;}
.st12{fill:none;stroke:#FFDE00;stroke-width:2.793;stroke-linecap:round;stroke-linejoin:round;}
.st13{fill:#FFDE00;}
.st14{fill:none;stroke:#00CF4F;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
.st15{fill:#00CF4F;}
.st16{fill:none;stroke:#45CFFF;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
.st17{fill:none;stroke:#EA5B0C;stroke-width:2.7934;stroke-linecap:round;stroke-linejoin:round;}
.st18{font-family:'Arial'; font-weight: bold; }
.st19{font-size:24px;}
.st20{fill:#45CFFF;}
</style>
<path class="st0" d="M769.2,391.8H21.9c-4.7,0-8.5-3.8-8.5-8.5v-153c0-4.7,3.8-8.5,8.5-8.5h747.3c4.7,0,8.5,3.8,8.5,8.5v153
C777.7,388,773.9,391.8,769.2,391.8z"/>
<path class="st1" d="M1010.3,261.5h-427c-4.7,0-8.5-3.8-8.5-8.5V81.2c0-4.7,3.8-8.5,8.5-8.5h427c4.7,0,8.5,3.8,8.5,8.5V253
C1018.8,257.7,1014.9,261.5,1010.3,261.5z"/>
<g>
<polyline class="st2" points="611.5,238.2 611.5,242.3 801.1,242.3 801.1,238.2 "/>
<g>
<line class="st2" x1="702.7" y1="342.2" x2="289.8" y2="343.3"/>
<g>
<line class="st2" x1="702.8" y1="253.3" x2="702.8" y2="342.1"/>
<path class="st3" d="M702.8,249.3c1.8,0,3.2,1.4,3.3,3.2c0,1.8-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0,0,0,0,0,0
C699.5,250.7,701,249.3,702.8,249.3z"/>
</g>
</g>
<path class="st3" d="M287.6,340.4c1.8,0,3.2,1.4,3.3,3.2s-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0,0,0,0,0,0
C284.3,341.8,285.8,340.4,287.6,340.4z"/>
</g>
<text transform="matrix(1 0 0 1 39.4923 262.5192)" class="st4 st5 st6">struct mg_http_message {</text>
<text transform="matrix(1 0 0 1 58.942 286.2874)" class="st7"><tspan x="0" y="0" class="st4 st5 st6">struct mg_str method; uri, query, proto; </tspan><tspan x="0" y="20.1" class="st4 st5 st6">struct mg_http_header headers[MG_MAX_HTTP_HEADERS];</tspan><tspan x="0" y="40.2" class="st4 st5 st6">struct mg_str body;</tspan><tspan x="0" y="60.3" class="st4 st5 st6">struct mg_str message; </tspan></text>
<g>
<g>
<polyline class="st8" points="634.5,89.6 634.5,78.6 228.8,79.7 228.7,269.4 "/>
<path class="st9" d="M637.7,90.6c0,1.8-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0-1.8,1.4-3.2,3.2-3.3c0,0,0,0,0,0
C636.2,87.4,637.7,88.8,637.7,90.6z"/>
</g>
<path class="st9" d="M225.7,269.4c0-1.8,1.4-3.2,3.2-3.3c1.8,0,3.2,1.4,3.3,3.2c0,1.8-1.4,3.2-3.2,3.3c0,0,0,0,0,0
C227.1,272.6,225.7,271.2,225.7,269.4z"/>
</g>
<g>
<polyline class="st10" points="610.6,183.6 606.5,183.6 606.5,127.8 610.6,127.8 "/>
<g>
<polyline class="st10" points="595.8,156.2 588.6,156.2 588.4,302.8 576.8,302.8 "/>
<path class="st11" d="M599.5,156.2c0-1.8-1.4-3.2-3.2-3.3c-1.8,0-3.2,1.4-3.3,3.2c0,1.8,1.4,3.2,3.2,3.3c0,0,0,0,0,0
C598.1,159.4,599.5,158,599.5,156.2z"/>
<path class="st11" d="M577.6,303c0-1.8-1.4-3.2-3.2-3.3c-1.8,0-3.2,1.4-3.3,3.2s1.4,3.2,3.2,3.3c0,0,0,0,0,0
C576.1,306.2,577.6,304.7,577.6,303z"/>
</g>
</g>
<text transform="matrix(1 0 0 1 614.5214 118.1291)" class="st7"><tspan x="0" y="0" class="st4 st5 st6">POST /foo/bar/baz?aa=b&amp;cc=ddd HTTP/1.1</tspan><tspan x="0" y="20.1" class="st4 st5 st6">Content-Type: application/json</tspan><tspan x="0" y="40.2" class="st4 st5 st6">Content-Length: 19</tspan><tspan x="0" y="60.3" class="st4 st5 st6">Host: reqbin.com</tspan></text>
<g>
<g>
<g>
<polyline class="st12" points="725.7,90.6 725.8,67.6 291.2,67.6 293.1,269.3 "/>
<path class="st13" d="M729,90.8c0,1.8-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0-1.8,1.4-3.2,3.2-3.3c0,0,0,0,0,0
C727.5,87.6,729,89.1,729,90.8z"/>
</g>
<path class="st13" d="M289.9,269.4c0-1.8,1.4-3.2,3.2-3.3s3.2,1.4,3.3,3.2s-1.4,3.2-3.2,3.3c0,0,0,0,0,0
C291.4,272.6,289.9,271.2,289.9,269.4z"/>
</g>
<polyline class="st12" points="784.9,104.3 784.9,100.3 666.1,100.3 666.1,104.3 "/>
</g>
<g>
<g>
<g>
<polyline class="st14" points="849.7,90.6 849.7,56.6 356.2,56.6 358.1,268.3 "/>
<path class="st15" d="M852.9,90.6c0,1.8-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0-1.8,1.4-3.2,3.2-3.3c0,0,0,0,0,0
C851.4,87.4,852.9,88.9,852.9,90.6z"/>
</g>
<path class="st15" d="M354.8,269.3c0-1.8,1.4-3.2,3.2-3.3c1.8,0,3.2,1.4,3.3,3.2c0,1.8-1.4,3.2-3.2,3.3c0,0,0,0,0,0
C356.3,272.5,354.8,271.1,354.8,269.3z"/>
</g>
<polyline class="st16" points="994.8,104.2 994.8,100.2 916,100.2 916,104.2 "/>
</g>
<text transform="matrix(1 0 0 1 610.291 232.3658)" class="st4 st5 st6">{"success": "true"}</text>
<polyline class="st17" points="656.5,104.4 656.5,100.4 612.7,100.4 612.7,104.4 "/>
<text transform="matrix(1 0 0 1 22.9506 207.5157)" class="st18 st19">Source Code</text>
<text transform="matrix(1 0 0 1 810.4799 32.3923)" class="st18 st19">HTTP message</text>
<text transform="matrix(1 0 0 1 39.4924 359.209)" class="st4 st5 st6">};</text>
<polyline class="st14" points="907.6,104.2 907.6,100.2 787.8,100.2 787.8,104.2 "/>
<g>
<g>
<polyline class="st16" points="954.7,90.6 954.7,45.6 426.2,45.6 428.1,268.3 "/>
<path class="st20" d="M957.9,90.6c0,1.8-1.4,3.2-3.2,3.3c-1.8,0-3.2-1.4-3.3-3.2c0-1.8,1.4-3.2,3.2-3.3c0,0,0,0,0,0
C956.4,87.4,957.9,88.9,957.9,90.6z"/>
</g>
<path class="st20" d="M424.8,269.3c0-1.8,1.4-3.2,3.2-3.3c1.8,0,3.2,1.4,3.3,3.2c0,1.8-1.4,3.2-3.2,3.3c0,0,0,0,0,0
C426.3,272.5,424.8,271.1,424.8,269.3z"/>
</g>
</svg>