{"id":18618,"date":"2025-04-19T01:03:12","date_gmt":"2025-04-18T17:03:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/18618.html"},"modified":"2025-04-19T01:03:12","modified_gmt":"2025-04-18T17:03:12","slug":"%e4%bd%bf%e7%94%a8-httpserversimple-%e5%ae%9e%e7%8e%b0%e8%bd%bb%e9%87%8f%e7%ba%a7-http-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/18618.html","title":{"rendered":"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5728Perl\u4e2d&#xff0c;HTTP::Server::Simple\u00a0\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0HTTP\u670d\u52a1\u5668\u3002\u8be5\u6a21\u5757\u7b80\u5355\u6613\u7528&#xff0c;\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u6d4b\u8bd5HTTP\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u00a0HTTP::Server::Simple\u00a0\u6a21\u5757\u521b\u5efa\u548c\u914d\u7f6e\u4e00\u4e2a\u8f7b\u91cf\u7ea7HTTP\u670d\u52a1\u5668\u3002<\/p>\n<h3 id=\"slide-1\">\u5b89\u88c5 HTTP::Server::Simple<\/h3>\n<p>\u9996\u5148&#xff0c;\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86\u00a0HTTP::Server::Simple\u00a0\u6a21\u5757\u3002\u5982\u679c\u5c1a\u672a\u5b89\u88c5&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7CPAN\u8fdb\u884c\u5b89\u88c5&#xff1a;<\/p>\n<p>cpan HTTP::Server::Simple<br \/>\n\u200b<\/p>\n<p>\u6216\u8005&#xff0c;\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u00a0cpanm&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p>cpanm HTTP::Server::Simple<br \/>\n\u200b<\/p>\n<h3 id=\"slide-2\">\u521b\u5efa\u7b80\u5355\u7684 HTTP \u670d\u52a1\u5668<\/h3>\n<p>\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u6700\u7b80\u5355\u7684HTTP\u670d\u52a1\u5668&#xff0c;\u8be5\u670d\u52a1\u5668\u5728\u672c\u5730\u7aef\u53e38080\u4e0a\u8fd0\u884c&#xff0c;\u5e76\u8fd4\u56de\u4e00\u4e2a\u7b80\u5355\u7684\u201cHello, World!\u201d\u6d88\u606f\u3002<\/p>\n<p>use strict;<br \/>\nuse warnings;<br \/>\nuse HTTP::Server::Simple::CGI;<\/p>\n<p># \u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u670d\u52a1\u5668\u7c7b&#xff0c;\u7ee7\u627f\u81eaHTTP::Server::Simple::CGI<br \/>\n{<br \/>\n    package MyWebServer;<br \/>\n    use base qw(HTTP::Server::Simple::CGI);<\/p>\n<p>    sub handle_request {<br \/>\n        my ($self, $cgi) &#061; &#064;_;<br \/>\n        print &#034;HTTP\/1.0 200 OK\\\\r\\\\n&#034;;<br \/>\n        print $cgi-&gt;header,<br \/>\n              $cgi-&gt;start_html(&#039;Hello&#039;),<br \/>\n              $cgi-&gt;h1(&#039;Hello, World!&#039;),<br \/>\n              $cgi-&gt;end_html;<br \/>\n    }<br \/>\n}<\/p>\n<p># \u5b9e\u4f8b\u5316\u5e76\u542f\u52a8\u670d\u52a1\u5668<br \/>\nmy $server &#061; MyWebServer-&gt;new(8080);<br \/>\nprint &#034;Server is running on http:\/\/localhost:8080\\\\n&#034;;<br \/>\n$server-&gt;run();<br \/>\n\u200b<\/p>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u7ee7\u627f\u81ea\u00a0HTTP::Server::Simple::CGI\u00a0\u7684\u7b80\u5355\u670d\u52a1\u5668\u7c7b\u00a0MyWebServer&#xff0c;\u5e76\u91cd\u5199\u4e86\u00a0handle_request\u00a0\u65b9\u6cd5\u6765\u5904\u7406\u8bf7\u6c42\u3002<\/p>\n<h3 id=\"slide-3\">\u6269\u5c55\u670d\u52a1\u5668\u529f\u80fd<\/h3>\n<p>\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u00a0handle_request\u00a0\u65b9\u6cd5\u6765\u589e\u52a0\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002\u4f8b\u5982&#xff0c;\u89e3\u6790\u8bf7\u6c42\u8def\u5f84\u5e76\u8fd4\u56de\u4e0d\u540c\u7684\u5185\u5bb9&#xff1a;<\/p>\n<p>use strict;<br \/>\nuse warnings;<br \/>\nuse HTTP::Server::Simple::CGI;<\/p>\n<p>{<br \/>\n    package MyWebServer;<br \/>\n    use base qw(HTTP::Server::Simple::CGI);<\/p>\n<p>    sub handle_request {<br \/>\n        my ($self, $cgi) &#061; &#064;_;<br \/>\n        my $path &#061; $cgi-&gt;path_info;<\/p>\n<p>        if ($path eq &#039;\/hello&#039;) {<br \/>\n            print &#034;HTTP\/1.0 200 OK\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Hello&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;Hello, World!&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        } elsif ($path eq &#039;\/goodbye&#039;) {<br \/>\n            print &#034;HTTP\/1.0 200 OK\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Goodbye&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;Goodbye, World!&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        } else {<br \/>\n            print &#034;HTTP\/1.0 404 Not Found\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Not Found&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;404 &#8211; Not Found&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>my $server &#061; MyWebServer-&gt;new(8080);<br \/>\nprint &#034;Server is running on http:\/\/localhost:8080\\\\n&#034;;<br \/>\n$server-&gt;run();<br \/>\n\u200b<\/p>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d&#xff0c;\u670d\u52a1\u5668\u6839\u636e\u8bf7\u6c42\u8def\u5f84\u8fd4\u56de\u4e0d\u540c\u7684\u5185\u5bb9\u3002\u5bf9\u4e8e\u00a0\/hello\u8def\u5f84&#xff0c;\u8fd4\u56de\u201cHello, World!\u201d\u6d88\u606f&#xff1b;\u5bf9\u4e8e\u00a0\/goodbye\u8def\u5f84&#xff0c;\u8fd4\u56de\u201cGoodbye, World!\u201d\u6d88\u606f&#xff1b;\u5bf9\u4e8e\u5176\u4ed6\u8def\u5f84&#xff0c;\u8fd4\u56de404\u9519\u8bef\u3002<\/p>\n<h3 id=\"slide-4\">\u6dfb\u52a0\u65e5\u5fd7\u8bb0\u5f55<\/h3>\n<p>\u4e3a\u4e86\u4fbf\u4e8e\u8c03\u8bd5\u548c\u76d1\u63a7&#xff0c;\u53ef\u4ee5\u6dfb\u52a0\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd&#xff0c;\u8bb0\u5f55\u6bcf\u4e2a\u8bf7\u6c42\u7684\u4fe1\u606f&#xff1a;<\/p>\n<p>use strict;<br \/>\nuse warnings;<br \/>\nuse HTTP::Server::Simple::CGI;<br \/>\nuse POSIX qw(strftime);<\/p>\n<p>{<br \/>\n    package MyWebServer;<br \/>\n    use base qw(HTTP::Server::Simple::CGI);<\/p>\n<p>    sub handle_request {<br \/>\n        my ($self, $cgi) &#061; &#064;_;<br \/>\n        my $path &#061; $cgi-&gt;path_info;<\/p>\n<p>        # \u8bb0\u5f55\u8bf7\u6c42\u4fe1\u606f<br \/>\n        my $log_entry &#061; strftime(&#034;[%Y-%m-%d %H:%M:%S]&#034;, localtime) . &#034; &#8211; $path\\\\n&#034;;<br \/>\n        open my $log, &#039;&gt;&gt;&#039;, &#039;server.log&#039; or die &#034;Cannot open log file: $!&#034;;<br \/>\n        print $log $log_entry;<br \/>\n        close $log;<\/p>\n<p>        if ($path eq &#039;\/hello&#039;) {<br \/>\n            print &#034;HTTP\/1.0 200 OK\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Hello&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;Hello, World!&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        } elsif ($path eq &#039;\/goodbye&#039;) {<br \/>\n            print &#034;HTTP\/1.0 200 OK\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Goodbye&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;Goodbye, World!&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        } else {<br \/>\n            print &#034;HTTP\/1.0 404 Not Found\\\\r\\\\n&#034;;<br \/>\n            print $cgi-&gt;header,<br \/>\n                  $cgi-&gt;start_html(&#039;Not Found&#039;),<br \/>\n                  $cgi-&gt;h1(&#039;404 &#8211; Not Found&#039;),<br \/>\n                  $cgi-&gt;end_html;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>my $server &#061; MyWebServer-&gt;new(8080);<br \/>\nprint &#034;Server is running on http:\/\/localhost:8080\\\\n&#034;;<br \/>\n$server-&gt;run();<br \/>\n\u200b<\/p>\n<p>\u6b64\u4ee3\u7801\u6bb5\u901a\u8fc7\u5c06\u6bcf\u4e2a\u8bf7\u6c42\u7684\u4fe1\u606f\u8bb0\u5f55\u5230\u00a0server.log\u00a0\u6587\u4ef6\u4e2d&#xff0c;\u5e2e\u52a9\u5f00\u53d1\u8005\u4e86\u89e3\u670d\u52a1\u5668\u7684\u8fd0\u884c\u60c5\u51b5\u548c\u8bf7\u6c42\u5386\u53f2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728Perl\u4e2d\uff0c\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0HTTP\u670d\u52a1\u5668\u3002\u8be5\u6a21\u5757\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u6d4b\u8bd5HTTP\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6a21\u5757\u521b\u5efa\u548c\u914d\u7f6e\u4e00\u4e2a\u8f7b\u91cf\u7ea7HTTP\u670d\u52a1\u5668\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[151,43,191],"topic":[],"class_list":["post-18618","post","type-post","status-publish","format-standard","hentry","category-server","tag-http","tag-43","tag-191"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/18618.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728Perl\u4e2d\uff0c\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0HTTP\u670d\u52a1\u5668\u3002\u8be5\u6a21\u5757\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u6d4b\u8bd5HTTP\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6a21\u5757\u521b\u5efa\u548c\u914d\u7f6e\u4e00\u4e2a\u8f7b\u91cf\u7ea7HTTP\u670d\u52a1\u5668\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/18618.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T17:03:12+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18618.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/18618.html\",\"name\":\"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T17:03:12+00:00\",\"dateModified\":\"2025-04-18T17:03:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/18618.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/18618.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18618.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/18618.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u5728Perl\u4e2d\uff0c\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0HTTP\u670d\u52a1\u5668\u3002\u8be5\u6a21\u5757\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u6d4b\u8bd5HTTP\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6a21\u5757\u521b\u5efa\u548c\u914d\u7f6e\u4e00\u4e2a\u8f7b\u91cf\u7ea7HTTP\u670d\u52a1\u5668\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/18618.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T17:03:12+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/18618.html","url":"https:\/\/www.wsisp.com\/helps\/18618.html","name":"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T17:03:12+00:00","dateModified":"2025-04-18T17:03:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/18618.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/18618.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/18618.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528 HTTP::Server::Simple \u5b9e\u73b0\u8f7b\u91cf\u7ea7 HTTP \u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/18618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=18618"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/18618\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=18618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=18618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=18618"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=18618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}