{"id":277066,"date":"2016-03-28T10:36:03","date_gmt":"2016-03-28T06:36:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=277066"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=277066","title":{"rendered":"\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Silicon \u2014 WebAPI \u043d\u0430 C++"},"content":{"rendered":"<p>       <b>\u041f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430:<\/b> <i>\u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 C++ <s>\u043d\u0430\u043f\u0440\u043e\u0447\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442<\/s> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0438\u0445 \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u043d\u0430 \u0421++ \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0432\u0441\u0451-\u0436\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u0441\u0442\u0440\u043e\u0439\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0449\u0435\u0435 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u043b\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Silicon, \u043f\u044b\u0442\u0430\u044e\u0449\u0430\u044f\u0441\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0421++ \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0433\u0438\u0431\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c WebAPI \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442.<\/i> <\/p>\n<p>  Hello World \u043d\u0430 Silicon \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441 \u043a <\/p>\n<pre>http:\/\/host\/hello\/world<\/pre>\n<p> \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u043a\u043e\u0434\u043e\u043c 200 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u00abhello world\u00bb:  <\/p>\n<pre><code class=\"cpp\">auto my_api = http_api(GET \/ _hello \/ _world  = [] () { return &quot;hello world&quot;;}); mhd_json_serve(my_api, 80); <\/code><\/pre>\n<p>  \u041d\u0435\u043f\u043b\u043e\u0445\u043e, \u043f\u0440\u0430\u0432\u0434\u0430? my_api \u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e API, \u0430 mhd_json_serve \u2014 \u044d\u0442\u043e \u0431\u0435\u043a\u044d\u043d\u0434 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Silicon, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0439 API \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043d\u0430 \u0432\u044b\u0431\u043e\u0440 <a href=\"http:\/\/www.gnu.org\/software\/libmicrohttpd\/\">microhttpd<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/lwan.ws\/\">LWAN<\/a>). <\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u0443\u043c\u0435\u0435\u0442 Silicon.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c JSON<\/b>  <\/p>\n<pre><code class=\"cpp\">GET \/ _hi = [] () { return D(_name = &quot;John&quot;, _age = 42); } <\/code><\/pre>\n<p>  <b>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0441\u0435\u0445 \u0442\u0438\u043f\u043e\u0432<\/b>  <\/p>\n<pre><code class=\"cpp\">POST \/ _hello \/ _id[int()] \/\/ URL-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b    * get_parameters(_name) \/\/ GET-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b    * post_parameters(_age = int()) \/\/ POST-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b     = [] (auto p) \/\/ p \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u0440\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430    {      std::ostringstream ss;      ss &lt;&lt; p.name &lt;&lt; p.age &lt;&lt; p.id;      return ss.str();    } <\/code><\/pre>\n<p>  <b>\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/b>  <\/p>\n<pre><code class=\"cpp\">GET \/ _hello * get_parameters(_id = optional(int(42))) <\/code><\/pre>\n<p>  <b>\u0421\u0432\u044f\u0437\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0439<\/b><br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 WebAPI, \u0442\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0430 Silicon \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">auto my_api = http_api(   GET \/ _username \/ _id[int()]   = [] (auto p, mysql_connection& db) {     std::string name;     db(&quot;SELECT name from User where id = ?&quot;)(id) &gt;&gt; name;     return D(_name = name);   } );  auto middlewares = std::make_tuple(    mysql_connection_factory(&quot;localhost&quot;, &quot;user&quot;, &quot;password&quot;, &quot;database_name&quot;) ); mhd_json_serve(my_api, middlewares, 8080); <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f MySQL \u0438 Sqlite.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0438<\/b><br \/>  \u0414\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043a\u043e\u0434\u043e\u0432 \u043e\u0448\u0438\u0431\u043e\u043a HTTP-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"cpp\">GET \/ _test \/ _id[int()] = [] (auto p) {   if (p.id != 42)     \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u0434 401 (Unauthorized)     throw error::unauthorized(&quot;Wrong ID&quot;);   return &quot;success&quot;; } <\/code><\/pre>\n<p>  <b>\u0421\u0435\u0441\u0441\u0438\u0438<\/b><br \/>  \u041c\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438):<\/p>\n<pre><code class=\"cpp\">struct session {   int id; };  auto api = http_api(      GET \/ _set_id \/ _id[int()] = [] (auto p, session& s)     {       s.id = p.id;     },      GET \/ _get_id = [] (session& s) {       return D(_id = s.id);     } );  auto middlewares = std::make_tuple(    hashmap_session_factory&lt;session&gt;() );  mhd_json_serve(my_api, middlewares, 8080); <\/code><\/pre>\n<p>  <b>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e WebAPI<\/b><br \/>  \u041c\u0430\u043b\u043e \u0442\u043e\u043b\u043a\u0443 \u043e\u0442 WebAPI, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, Silicon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e API \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0430 \u0431\u0430\u0437\u0435 libcurl_json_client, \u0441 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e API. \u041c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a \u0438 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435. <\/p>\n<pre><code class=\"cpp\">\/\/ \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c API auto my_api = http_api(     POST \/ _hello \/ _world \/ _id[int()]     * get_parameters(_name, _city)     = [] (auto p) { return D(_id = p.id, _name = p.name, _city = p.city); } );  \/\/ \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 auto server = sl::mhd_json_serve(hello_api, 8080, _non_blocking);  \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u0438\u0435\u043d\u0442 auto c = libcurl_json_client(my_api, &quot;127.0.0.1&quot;, 8080);  \/\/ c.http_get \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 GET-\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \/\/ c.http_post \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 POST-\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \/\/ c.http_put \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 PUT-\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \/\/ c.http_delete \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 DELETE-\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b  \/\/ \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u043d\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0437\u043d\u0430\u0435\u0442 \u043f\u0443\u0442\u0438 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 auto r = c.http_post.hello.world(_id = 42, _name = &quot;John&quot;, _city = &quot;Paris&quot;);  assert(r.status == 200); assert(r.response.id == 42); assert(r.response.name == &quot;John&quot;); assert(r.response.city == &quot;Paris&quot;); <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/280214\/\"> https:\/\/habrahabr.ru\/post\/280214\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <b>\u041f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430:<\/b> <i>\u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 C++ <s>\u043d\u0430\u043f\u0440\u043e\u0447\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442<\/s> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0438\u0445 \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u043d\u0430 \u0421++ \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0432\u0441\u0451-\u0436\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u0441\u0442\u0440\u043e\u0439\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0449\u0435\u0435 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0442\u0430\u043b\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Silicon, \u043f\u044b\u0442\u0430\u044e\u0449\u0430\u044f\u0441\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0421++ \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0433\u0438\u0431\u043a\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c WebAPI \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442.<\/i> <\/p>\n<p>  Hello World \u043d\u0430 Silicon \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441 \u043a <\/p>\n<pre>http:\/\/host\/hello\/world<\/pre>\n<p> \u043e\u0442\u0432\u0435\u0442\u0438\u0442 \u043a\u043e\u0434\u043e\u043c 200 \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u00abhello world\u00bb:  <\/p>\n<pre><code class=\"cpp\">auto my_api = http_api(GET \/ _hello \/ _world  = [] () { return &quot;hello world&quot;;}); mhd_json_serve(my_api, 80); <\/code><\/pre>\n<p>  \u041d\u0435\u043f\u043b\u043e\u0445\u043e, \u043f\u0440\u0430\u0432\u0434\u0430? my_api \u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e API, \u0430 mhd_json_serve \u2014 \u044d\u0442\u043e \u0431\u0435\u043a\u044d\u043d\u0434 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Silicon, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0439 API \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043d\u0430 \u0432\u044b\u0431\u043e\u0440 <a href=\"http:\/\/www.gnu.org\/software\/libmicrohttpd\/\">microhttpd<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/lwan.ws\/\">LWAN<\/a>). <\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u0443\u043c\u0435\u0435\u0442 Silicon.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-277066","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277066"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277066\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}