{"id":38133,"date":"2022-10-18T17:06:09","date_gmt":"2022-10-18T08:06:09","guid":{"rendered":"https:\/\/kinqsta.com\/jp\/?p=38133&#038;post_type=knowledgebase&#038;preview_id=38133"},"modified":"2025-10-02T04:48:20","modified_gmt":"2025-10-01T19:48:20","slug":"javascript-http-request","status":"publish","type":"post","link":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/","title":{"rendered":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u30b5\u30a4\u30c8\u306e<a href=\"https:\/\/kinqsta.com\/blog\/backend-vs-frontend\/\">\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9<\/a>\u9593\u306e\u3084\u308a\u53d6\u308a\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u3063\u3066\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u65b0\u898f\/\u65e7\u30e6\u30fc\u30b6\u30fc\u306e\u66f4\u65b0\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/wordpress-admin\/\">WordPress\u7ba1\u7406\u753b\u9762<\/a>\u304b\u3089\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u516c\u958b\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u304b\u3089\u306e\u5199\u771f\u306e\u524a\u9664\u3001\u30e6\u30fc\u30b6\u30fc\u81ea\u5df1\u7d39\u4ecb\u6b04\u306e\u60c5\u5831\u5909\u66f4\u3068\u3044\u3063\u305f\u6a5f\u80fd\u306f\u3059\u3079\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9593\u306e\u3084\u308a\u3068\u308a\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u6642\u306b\u306f\uff08\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e21\u65b9\u3067\uff09\u3001\u3057\u3070\u3057\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30b5\u30fc\u30d0\u30fc\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u5bfe\u8c61\u3068\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306b\u5c5e\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308c\u3070\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u958b\u767a\u8005\u304c\u4f5c\u6210\u3057\u305f\u3082\u306e\u306b\u3082\u306a\u308a\u5f97\u307e\u3059\u3002<\/p>\n\n<p>\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u5bfe\u8a71\u306b\u306f\u3001\u3055\u307e\u3056\u307e\u306aHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002POST\u3001GET\u3001PUT\/PATCH\u3001DELETE\u3068\u3044\u3063\u305f\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff08CRUD\uff09\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-javascript\/\">JavaScript<\/a>\u3067CRUD\u64cd\u4f5c\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u5404\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u9001\u4fe1\u306b\u4f7f\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u6271\u3044\u307e\u3059\u3002fetch API\u3084XMLHttpRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u306e\u7d44\u307f\u8fbc\u307f\u30e1\u30bd\u30c3\u30c9\u304b\u3089\u59cb\u3081\u3001Axios\u3084SuperAgent\u306a\u3069\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>JavaScript\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f<\/h2>\n<p>JavaScript\u306e<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-an-http-request\/\">HTTP \u30ea\u30af\u30a8\u30b9\u30c8<\/a>\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3059\u308b\u306e\u306b\u4f7f\u7528\u3055\u308c\u308b\u3001\u4e00\u9023\u306e\u5b9a\u7fa9\u6e08\u307f\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3068\u9001\u4fe1\u3055\u308c\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u30fc\u306e2\u3064\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u9593\u306e\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u6709\u52b9\u6027\u306b\u5fdc\u3058\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u306fXML\u307e\u305f\u306fJSON\u5f62\u5f0f\uff08\u307b\u3068\u3093\u3069\u306e\u5834\u5408JSON\uff09\u3067\u30c7\u30fc\u30bf\u3092\u9001\u308a\u8fd4\u3057\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/errors-in-javascript\/\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/a>\u3092\u9001\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u304c\u9001\u308a\u8fd4\u3059\u30ec\u30b9\u30dd\u30f3\u30b9\u306f\u3001\u901a\u5e38<a href=\"https:\/\/kinqsta.com\/jp\/blog\/http-status-codes\/\">\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u4f34\u3044<\/a>\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u3063\u305f\u3068\u304d\u306e\u72b6\u614b\u3092\u3001\u3053\u306e\u30b3\u30fc\u30c9\u304b\u3089\u63a8\u3057\u91cf\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>100-199\uff1a\u60c5\u5831\uff08\u51e6\u7406\u4e2d\uff09<\/li>\n<li>200-299\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u6210\u529f<\/li>\n<li>300-399\uff1a\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/li>\n<li>400-499\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a8\u30e9\u30fc<\/li>\n<li>500-599\uff1a<a href=\"https:\/\/kinqsta.com\/jp\/blog\/500-internal-server-error\/\">\u30b5\u30fc\u30d0\u30fc<\/a>\u30a8\u30e9\u30fc<\/li>\n<\/ul>\n<p>\u3044\u304f\u3064\u304b\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u304b\u3089\u8a73\u3057\u304f\u8aac\u660e\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>JavaScript\u3067\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u6271\u3044\u65b9<\/h2>\n<p>\u8907\u6570\u306e\u30b5\u30d6\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u5206\u3051\u3066\u3001JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u3055\u307e\u3056\u307e\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u65b9\u6cd5\u3067\u3001POST\u3001GET\u3001PUT\/PATCH\u3001DELETE \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u4f8b\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/jsonplaceholder.typicode.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">JSON Placeholder<\/a>\u306f\u3001\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u9001\u4fe1\u3055\u308c\u308b\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\/\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<p>\u3055\u3063\u305d\u304f\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>1. JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5\uff08AJAX\uff09<\/h3>\n<p>XMLHttpRequest \u306fJavaScript\u306e\u7d44\u307f\u8fbc\u307f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3053\u3068\u306a\u304f\u30b5\u30fc\u30d0\u30fc\u3068\u3084\u308a\u53d6\u308a\u3057\u305f\u308a\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8aad\u307f\u8fbc\u3093\u3060\u308a\u3059\u308b\u306e\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001XMLHttpRequest\u3092\u4f7f\u7528\u3057\u3066POST\u3001GET\u3001PUT\/PATCH\u3001\u304a\u3088\u3073DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>AJAX \u306f\u3001\u975e\u540c\u671fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u306e\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3078\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u4fdd\u7559\u3055\u308c\u3066\u3044\u308b\u9593\uff08\u5b8c\u4e86\u3057\u3066\u3044\u306a\u3044\u6642\uff09\u306b\u3082\u3001JavaScript\u30b3\u30fc\u30c9\u306e\u4ed6\u306e\u90e8\u5206\u3067\u3001\u5b9f\u884c\u3092\u7d99\u7d9a\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001AJAX\u306e\u5229\u7528\u306b\u3088\u308a\u3001\u8a2a\u554f\u8005\u306b\u30da\u30fc\u30b8\u5168\u4f53\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3055\u305b\u308b\u3053\u3068\u306a\u304f\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u7279\u5b9a\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>AJAX\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fXMLHttpRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u4f8b\u306fAJAX\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-info\">\n            <h3>Info<\/h3>\n        <p>\u5f53\u521d\u306f\u3001<code>true<\/code>\uff08asynchronous\uff09\u3068<code>false<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u975e\u540c\u671f\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u5f8c\u8005\u306f\u73fe\u5728\u3067\u306f\u975e\u63a8\u5968\u3067\u3059\u3002<\/p>\n<\/aside>\n\n<h4>JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5229\u7528\u3057\u307e\u3059\u3002JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u7528\u3057\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6b63\u5e38\u306b\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u3092\u6e80\u305f\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u65b0\u3057\u3044XMLHttpRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3068\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8 (\u30b5\u30fc\u30d0\u30fc\u306e URL) \u3092\u6307\u5b9a\u3057\u3066\u3001\u63a5\u7d9a\u3092\u958b\u59cb\u3059\u308b<\/li>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u5fdc\u7b54\u3092\u5f85\u3064<\/li>\n<\/ol>\n<p>XMLHttpRequest\u3092\u4f7f\u7528\u3057\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u624b\u9806\u3092\u7406\u89e3\u3057\u305f\u3068\u3053\u308d\u3067\u3001\u6b21\u306f\u30b3\u30fc\u30c9\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">const xhr = new XMLHttpRequest();\nxhr.open(\"GET\", \"https:\/\/jsonplaceholder.typicode.com\/users\");\nxhr.send();\nxhr.responseType = \"json\";\nxhr.onload = () =&gt; {\n  if (xhr.readyState == 4 && xhr.status == 200) {\n    const data = xhr.response;\n    console.log(data);\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3092\u5206\u89e3\u3057\u3066\u3001\u4e2d\u8eab\u3092\u7406\u89e3\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001XMLHttpRequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092<code>xhr<\/code>\u3068\u3044\u3046\u5909\u6570\u306b\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\uff09\u3002<\/p>\n<pre><code class=\"language-js\">const xhr = new XMLHttpRequest();<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30a4\u30d7\uff08GET\uff09\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u5148\u3067\u3042\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08\u3053\u3053\u3067\u306f<a href=\"https:\/\/jsonplaceholder.typicode.com\/users\" target=\"_blank\" rel=\"noopener noreferrer\">&#8220;https:\/\/jsonplaceholder.typicode.com\/users&#8221;<\/a>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-js\">xhr.open(\"GET\", \"https:\/\/jsonplaceholder.typicode.com\/users\");<\/code><\/pre>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u306e\u306b\u3001<code>send()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u304c\u30c7\u30fc\u30bf\u3092\u9001\u308a\u8fd4\u3059\u3068\u304d\u306e\u5f62\u5f0f\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001JSON\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3068\u306f\u8a00\u3048\u3001\u5ff5\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u30c7\u30fc\u30bf\u304cJSON\u3067\u8fd4\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"language-js\">xhr.responseType = \"json\";<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001GET\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306f\u5b8c\u4e86\u3067\u3059\u3002\u6b21\u306b\u3001\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308c\u308b\u72b6\u614b\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">xhr.onload = () =&gt; {\n  if (xhr.readyState == 4 && xhr.status == 200) {\n    const data = xhr.response;\n    console.log(data);\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>onload<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<code>if<\/code>\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u72b6\u614b\u304c4\uff08DONE\uff09\u3067\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c200\uff08\u6210\u529f\uff09\u3067\u3042\u308c\u3070\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u72b6\u6cc1\u3092\u793a\u3059\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u306a\u3057\u3067\u3053\u3053\u307e\u3067\u304d\u305f\u3089\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">[{\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}, {\u2026}]<\/code><\/pre>\n<p>\u3053\u308c\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3067\u3059\u3002<\/p>\n<h4>JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u60c5\u5831\uff08\u30c7\u30fc\u30bf\uff09\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u30b5\u30fc\u30d0\u30fc\/\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u3059\u308b\u60c5\u5831\u3084\u3001ToDo\u30ea\u30b9\u30c8\u306e\u9805\u76ee\u306a\u3069\u3001\u3042\u3089\u3086\u308b\u4f7f\u3044\u9053\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u7d39\u4ecb\u3059\u308b\u30b3\u30fc\u30c9\u4f8b\u306f\u3001\u524d\u306e\u3082\u306e\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u4e3b\u306a\u9055\u3044\u3068\u3057\u3066\u3001POST\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u3001\u901a\u5e38\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u524d\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u7279\u5b9a\u306e\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const xhr = new XMLHttpRequest();\nxhr.open(\"POST\", \"https:\/\/jsonplaceholder.typicode.com\/posts\");\nxhr.setRequestHeader(\"Content-Type\", \"application\/x-www-form-urlencoded\");\nconst body = JSON.stringify({\n  title: \"Hello World\",\n  body: \"My POST request\",\n  userId: 900,\n});\nxhr.onload = () =&gt; {\n  if (xhr.readyState == 4 && xhr.status == 201) {\n    console.log(JSON.parse(xhr.responseText));\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};\nxhr.send(body);<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u60c5\u5831\u306f<code>body<\/code>\u3068\u3044\u3046\u5909\u6570\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u306b\u306f\u30013\u3064\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u3001<code>title<\/code>\u3001<code>body<\/code>\u3001<code>userId<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3059\u308b\u5909\u6570<code>body<\/code>\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u9001\u4fe1\u524d\u306bJSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u5909\u63db\u306f\u3001<code>JSON.stringify()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u9001\u4fe1\u306e\u305f\u3081\u306b\u3001<code>send()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u5f15\u6570\u3068\u3057\u3066\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">xhr.send(body);<\/code><code class=\"language-js\"><\/code><\/pre>\n<h4>JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u3063\u3066PATCH\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>PATCH\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6307\u5b9a\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u66f4\u65b0\u3059\u308b\u306e\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5168\u4f53\u3092\u66f4\u65b0\u3059\u308bPUT\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001JavaScript\u3067\u306eXMLHttpRequest\u3092\u4f7f\u3063\u305fPATCH\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const xhr = new XMLHttpRequest();\nxhr.open(\"PATCH\", \"https:\/\/jsonplaceholder.typicode.com\/posts\/101\");\nxhr.setRequestHeader(\"Content-type\", \"application\/json; charset=utf-8\");\nconst body = JSON.stringify({\n  body: \"My PATCH request\",\n});\nxhr.onload = () =&gt; {\n  var data = JSON.parse(xhr.responseText);\n  if (xhr.readyState == 4 && xhr.status == \"200\") {\n    console.log(data);\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};\nxhr.send(body);<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u66f4\u65b0\u3068\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u9001\u4fe1\u304c\u51e6\u7406\u3055\u308c\u3001\u305d\u306e\u7d50\u679c\u304c\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067XMLHttpRequest\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u305d\u306e\u540d\u306e\u901a\u308a\u3001DELETE\u30e1\u30bd\u30c3\u30c9\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b\u306e\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001JavaScript\u306e\u3069\u306eHTTP\u30e1\u30bd\u30c3\u30c9\u306b\u3082\u5171\u901a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u524a\u9664\u3057\u305f\u3044\u30c7\u30fc\u30bf\u306eID\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002ID\u306f\u901a\u5e38\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\/URL\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">const xhr = new XMLHttpRequest();\nxhr.open(\"DELETE\", \"https:\/\/jsonplaceholder.typicode.com\/posts\/3\");\nxhr.onload = function () {\n  var data = JSON.parse(xhr.responseText);\n  if (xhr.readyState == 4 && xhr.status == \"200\") {\n    console.log(data);\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};\nxhr.send();<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08<a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\/3\" target=\"_blank\" rel=\"noopener noreferrer\">&#8220;https:\/\/jsonplaceholder.typicode.com\/posts\/3&#8221;<\/a>\uff09\u3067\u6307\u5b9a\u3055\u308c\u305fID\u304c3\u3067\u3042\u308bpost\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>2. JavaScript\u3067jQuery\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p>jQuery\u3067\u306f\u3001\u69cb\u6587\u3092\u77ed\u304f\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306a jQuery\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066<a href=\"https:\/\/kinqsta.com\/jp\/blog\/http3\/\">HTTP<\/a>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067jQuery\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>jQuery\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306bGET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b<code>$.get()<\/code>\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306eURL\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306b\u5b9f\u884c\u3055\u308c\u308b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3068\u3044\u30462\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">$.get(\"https:\/\/jsonplaceholder.typicode.com\/users\", (data, status) =&gt; {\n  console.log(data);\n});<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u308f\u304b\u308b\u3088\u3046\u306b\u3001<code>$.get()<\/code>\u30e1\u30bd\u30c3\u30c9\u306fURL\uff08<a href=\"https:\/\/jsonplaceholder.typicode.com\/users\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/jsonplaceholder.typicode.com\/users<\/a>\uff09\u3068\u533f\u540d\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u53d7\u3051\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u901a\u3058\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3068\u305d\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0a\u304c\u3001jQuery\u3092\u4f7f\u3063\u305fGET\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7c21\u5358\u306a\u5b9f\u884c\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h4>JavaScript\u3067jQuery\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>jQuery\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001<code>$.post()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u3001URL\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e3\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const body = JSON.stringify({\n  title: \"Hello World\",\n  body: \"My POST request\",\n  userId: 900,\n});\n$.post(\"https:\/\/jsonplaceholder.typicode.com\/users\", body, (data, status) =&gt; {\n  console.log(data);\n});<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092<code>body<\/code>\u3068\u3044\u3046\u5909\u6570\u306b\u683c\u7d0d\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u5909\u6570\u306f\u3001<code>$.post()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e2\u756a\u76ee\u306e\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7d50\u679c\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>3. jQuery\u3067$.ajax()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u975e\u540c\u671f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p>PATCH\u3068DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306b\u9032\u3080\u524d\u306b\u3001<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>jQuery\u306e<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u975e\u540c\u671f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u306e\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u69cb\u6587\u304c\u4ed6\u3068\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">$.ajax({\n  url: \"https:\/\/jsonplaceholder.typicode.com\/users\",\n  type: \"GET\",\n  success: function (result) {\n    console.log(result);\n  },\n});<\/code><\/pre>\n<p><code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001\u69d8\u3005\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>url<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30b5\u30fc\u30d0\u30fc\u3078\u306eURL\u3092\u6307\u5b9a\u3057\u3001<code>type<\/code>\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3057\u3001<code>success<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u6210\u529f\u3057\u305f\u5834\u5408\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n[cta\uff3d<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001jQuery\u306e<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066PATCH\u3068DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067jQuery\u306e$.ajax()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066PATCH\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001jQuery\u306e<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066PATCH\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u6271\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u305d\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">const body = JSON.stringify({\n  body: \"My PATCH request\",\n});\n$.ajax({\n  url: \"https:\/\/jsonplaceholder.typicode.com\/posts\/101\",\n  type: \"PATCH\",\n  data: body,\n  success: function (result) {\n    console.log(result);\n  },\n});<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u66f4\u65b0\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u6570<code>body<\/code>\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u308c\u304c<code>data<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3059\u308b\u3068\u3001<code>success<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067jQuery\u306e$.ajax()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>jQuery\u306e<code>$.ajax()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001\u308f\u305a\u304b\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067OK\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">$.ajax({\n  url: \"https:\/\/jsonplaceholder.typicode.com\/posts\/3\",\n  type: \"DELETE\",\n  success: function (result) {\n    console.log(result)\n  },\n});<\/code><\/pre>\n<p>\u4e0a\u3067\u898b\u305f\u3088\u3046\u306b\u3001\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u542b\u3080URL\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3001\u305d\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067jQuery\u306e$.getJSON\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b<\/h4>\n<p><code>$.getJSON<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001\u77ed\u3044\u8a18\u8ff0\u3067\u3001GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u3042\u308b\u3088\u3046\u306b\u3001URL\u3068\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">$.getJSON(\"https:\/\/jsonplaceholder.typicode.com\/users\", function (result) {\n  console.log(result)\n});<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>$.getJSON<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306eURL\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\u5f8c\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u3092\u6e21\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>4. JavaScript\u3067Fetch API\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p><code>fetch<\/code> API\u306f\u3001JavaScript\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u3068\u3084\u308a\u3068\u308a\u3059\u308b\u5178\u578b\u7684\u306a\u624b\u6cd5\u306e\u3072\u3068\u3064\u3067\u3059\u3002\u30cd\u30a4\u30c6\u30a3\u30d6\u306eJavaScript API\u3067\u3042\u308a\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u5b9f\u884c\u6642\u306epromise\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>fetch<\/code> API\u3092\u4f7f\u7528\u3059\u308b\u69cb\u6587\u306f\u3001\u3053\u306e\u5f8c\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8aac\u660e\u3059\u308b\u3088\u3046\u306b\u3001\u975e\u5e38\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Fetch API\u3092\u4f7f\u7528\u3057\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p><code>fetch<\/code> API\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001URL\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002\u3053\u3053\u304b\u3089\u306fpromise\u304c\u8fd4\u3055\u308c\u3001<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u307e\u305f\u306f<code>async<\/code>\u3068<code>await<\/code>\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">fetch(\"https:\/\/jsonplaceholder.typicode.com\/posts\")\n.then((response) =&gt; response.json())\n.then((json) =&gt; console.log(json));<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>fetch<\/code>\u30e1\u30bd\u30c3\u30c9\u306bURL\u3092\u6e21\u3057\u3001promise\u3092\u8fd4\u3057\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u307e\u3059\u3002\u30ec\u30b9\u30dd\u30f3\u30b9\u306f<code>response.json()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u305f\u5f8c\u3001\u5225\u306e<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3001\u30c7\u30fc\u30bf\u304c\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Fetch API\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>fetch\u30e1\u30bd\u30c3\u30c9\u306b\u306f\u3001body\uff08\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\uff09\u3068\u9001\u4fe1\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306e2\u3064\u76ee\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3088\u3063\u3066\u3001POST\u304a\u3088\u3073PATCH\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">fetch(\"https:\/\/jsonplaceholder.typicode.com\/posts\", {\n  method: \"POST\",\n  body: JSON.stringify({\n    title: \"Hello World\",\n    body: \"My POST request\",\n    userId: 900,\n  }),\n  headers: {\n    \"Content-type\": \"application\/json; charset=UTF-8\",\n  },\n})\n.then((response) =&gt; response.json())\n.then((json) =&gt; console.log(json));<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>fetch<\/code>\u30e1\u30bd\u30c3\u30c9\u306e2\u3064\u76ee\u306e\u5f15\u6570\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<code>method<\/code>\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30a4\u30d7\u3092\u3001<code>body<\/code>\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u3092\u3001\u305d\u3057\u3066\u3001<code>headers<\/code>\u306f\u30b5\u30fc\u30d0\u30fc\u306bJSON\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u305f\u3068\u304d\u3068\u540c\u69d8\u306b\u3001\u8fd4\u3055\u308c\u305fpromise\/\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Fetch API\u3092\u4f7f\u3063\u3066PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u4ed6\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u5185\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u66f4\u65b0\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u305f\u3068\u304d\u306f\u3001PATCH\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308bPUT\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<code>fetch<\/code> API\u3092\u4f7f\u7528\u3057\u305f\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">fetch(\"https:\/\/jsonplaceholder.typicode.com\/posts\/1\", {\n  method: \"PUT\",\n  body: JSON.stringify({\n    id: 1,\n    title: \"My PUT request\",\n    body: \"Updating the entire object\",\n    userId: 1,\n  }),\n  headers: {\n    \"Content-type\": \"application\/json; charset=UTF-8\",\n  },\n})\n.then((response) =&gt; response.json())\n.then((json) =&gt; console.log(json));<\/code><\/pre>\n<p>PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306e\u3067\u3001\u66f4\u65b0\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u3001<code>body<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5024\u3068\u3057\u3066\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001URL\u306e\u6700\u5f8c\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u3001\u66f4\u65b0\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u66f4\u65b0\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Fetch API\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3001\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u4ed6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u884c\u3063\u305f\u3088\u3046\u306b\u3001<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u7c21\u5358\u306a\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">fetch(\"https:\/\/jsonplaceholder.typicode.com\/posts\/3\", {\n  method: \"DELETE\",\n});<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001ID\u304c3\u3067\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>5. JavaScript\u3067Axios\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p>Axios\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306b\u4f7f\u3048\u308b\u3001promise\u3092\u571f\u53f0\u306b\u3057\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u6700\u8fd1\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u540c\u69d8\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u9001\u4fe1\u306b\u95a2\u308f\u308b\u51e6\u7406\u3092\u7c21\u7565\u5316\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Axios\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u306bGET\u3001POST\u3001PUT\u3001DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>Axios\u306fJavaScript\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u305d\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Axios\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-npm\/\">\u30bf\u30fc\u30df\u30ca\u30eb<\/a>\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">npm install axios<\/code><\/pre>\n<h4>JavaScript\u3067Axios\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>Axios\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001<code>get()<\/code>\u30e1\u30bd\u30c3\u30c9\u306bURL\u3092\u6e21\u3059\u3060\u3051\u3067\u3001promise\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002promise\u304b\u3089\u8fd4\u3055\u308c\u305f\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306f\u3001<code>then()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">axios.get(\"https:\/\/jsonplaceholder.typicode.com\/posts\")\n.then((response) =&gt; console.log(response.data))\n.catch((error) =&gt; console.log(error));<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u8fd4\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u8fd4\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3053\u3068\u306b\u306f\u3001\u304a\u6c17\u3065\u304d\u3067\u3057\u3087\u3046\u304b\u3002Axios\u304c\u3053\u308c\u3092\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001<code>response.data<\/code>\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306b\u3001<code>catch()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Axios\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>Axios\u306ePOST\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001URL\u3068\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u3068\u3044\u30462\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u304b\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u76f4\u63a5\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u305d\u306e\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">axios.post(\"https:\/\/jsonplaceholder.typicode.com\/posts\", {\n  title: \"POST request with Axios\",\n  body: \"POST request\",\n  userId: 10,\n})\n.then(function (response) {\n  console.log(response.data);\n})\n.then((error) =&gt; console.log(error))<\/code><\/pre>\n<p>\u4e0a\u306e\u4f8b\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u306f\u3001<code>post()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e2\u756a\u76ee\u306e\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Axios\u3092\u4f7f\u3063\u3066PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>Axios\u3092\u4f7f\u3063\u305fPUT\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306f\u3001POST\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001URL\uff08\u66f4\u65b0\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u542b\u3080\uff09\u3068\u66f4\u65b0\u3059\u308b\u30c7\u30fc\u30bf\u3092\u3001<code>put()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u7b2c2\u5f15\u6570\u3068\u3057\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001ID\u304c10\u3067\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">axios.put(\"https:\/\/jsonplaceholder.typicode.com\/posts\/10\", {\n  title: \"PUT request with Axios\",\n  body: \"PUT request\",\n  userId: 10,\n})\n.then(function (response) {\n  console.log(response.data);\n})\n.then((error) =&gt; console.log(error))<\/code><\/pre>\n<h4>JavaScript\u3067Axios\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eURL\u306e\u4e2d\u3067ID\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u901a\u308a\u3001\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3068URL\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">axios.delete(\"https:\/\/jsonplaceholder.typicode.com\/posts\/10\")\n.then(function (response) {\n  console.log(response);\n})\n.then((error) =&gt; console.log(error))<\/code><\/pre>\n<h3>6. JavaScript\u3067SuperAgent\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p>SuperAgent\u306f\u3001JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u6b74\u53f2\u3042\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002Axios\u3068\u540c\u69d8\u306bpromise\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u69d8\u3005\u306aHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>SuperAgent\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">npm install superagent<\/code><\/pre>\n<p>GET\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b\u304b\u3089\u9806\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>JavaScript\u3067SuperAgent\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>SuperAgent\u3067GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001<code>get()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002URL\u304c\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u8fd4\u3055\u308c\u308bpromise\u306b\u5bfe\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u4f8b\u306b\u3042\u308b\u3088\u3046\u306b\u3001<code>end()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">superagent\n.get(\"https:\/\/jsonplaceholder.typicode.com\/posts\")\n.end((error, response) =&gt; {\n  console.log(response.body);\n});<\/code><\/pre>\n<h4>JavaScript\u3067SuperAgent\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>SuperAgent\u3092\u4f7f\u7528\u3057\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u3092SuperAgent\u306e<code>send()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u5f15\u6570\u3068\u3057\u3066\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">superagent\n.post(\"https:\/\/jsonplaceholder.typicode.com\/posts\")\n.send({\n  title: \"POST request with SuperAgent\",\n  body: \"POST request\",\n  userId: 10,\n})\n.set(\"X-API-Key\", \"foobar\")\n.set(\"accept\", \"json\")\n.end((err, res) =&gt; {\n  console.log(res.body);\n});<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>post()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066URL\u304c\u6e21\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u306f\u3001<code>send()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3055\u308c\u307e\u3057\u305f\u3002<code>end()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067SuperAgent\u3092\u4f7f\u3063\u3066PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>SuperAgent\u3067\u306f\u3001<code>put()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u4f8b\u3068\u540c\u69d8\u306b\u3001\u66f4\u65b0\u3059\u308b\u30c7\u30fc\u30bf\u306f<code>send()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u6e21\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">superagent\n.put(\"https:\/\/jsonplaceholder.typicode.com\/posts\/10\")\n.send({\n  title: \"PUT request with SuperAgent\",\n  body: \"PUT request\",\n  userId: 10,\n})\n.set(\"X-API-Key\", \"foobar\")\n.set(\"accept\", \"json\")\n.end((err, res) =&gt; {\n  console.log(res.body);\n});<\/code><\/pre>\n<h4>JavaScript\u3067SuperAgent\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u524a\u9664\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092URL\u3067\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002\u3053\u308c\u304c\u3001<code>delete()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-js\">superagent\n.delete(\"https:\/\/jsonplaceholder.typicode.com\/posts\/10\")\n.end((err, res) =&gt; {\n  console.log(res.body);\n});<\/code><\/pre>\n<h3>7. JavaScript\u3067Qwest\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5<\/h3>\n<p>Qwest\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u5bfe\u8a71\u306b\u4fbf\u5229\u306aAJAX\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u73fe\u5728\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-github\/\">GitHub<\/a>\u3067\u30a2\u30fc\u30ab\u30a4\u30d6\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>fetch<\/code> API\u3068Axios\u306e\u51fa\u73fe\u306b\u3088\u308a\u3001\u4f5c\u8005\u304c\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u6253\u3061\u5207\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Qwest\u306fpromise\u306e\u4f7f\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Qwest\u3092\u4f7f\u7528\u3057\u3066GET\u3001POST\u3001PUT\u3001DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>JavaScript\u3067Qwest\u3092\u4f7f\u3063\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f7f\u3046<\/h4>\n<p>Qwest\u306b\u306f\u3001GET\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u306b\u4f7f\u7528\u3067\u304d\u308b<code>get()<\/code>\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">qwest.get(\"https:\/\/jsonplaceholder.typicode.com\/posts\")\n\n.then((xhr, response) =&gt; console.log(response));<\/code><\/pre>\n<h4>JavaScript\u3067Qwest\u3092\u4f7f\u3063\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f7f\u3046<\/h4>\n<p>\u7b2c2\u5f15\u6570\u3068\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u3092<code>post()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3057\u307e\u3059\u3002\u7b2c1\u5f15\u6570\u306fURL\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">qwest.post(\"https:\/\/jsonplaceholder.typicode.com\/posts\", {\n  title: 'POST request with Qwest',\n  body: 'POST request',\n  userId: 30\n})\n.then(function(xhr, response) {\n  console.log(response)\n})\n.catch(function(e, xhr, response) {\n  console.log(e)\n});<\/code><\/pre>\n<p>[cta\uff3d<\/p>\n<h4>JavaScript\u3067Qwest\u3092\u4f7f\u3063\u3066PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u3053\u306e\u69cb\u6587\u306f\u3001\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3068\u540c\u3058\u3067\u3059\u3002\u5909\u66f4\u3059\u308b\u306e\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u30bf\u30a4\u30d7\u3060\u3051\u3067\u3001\u3042\u3068\u306f\u66f4\u65b0\u3057\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u3001\u66f4\u65b0\u3057\u305f\u3044\u30c7\u30fc\u30bf\u3068\u3068\u3082\u306b\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-js\">qwest.put(\"https:\/\/jsonplaceholder.typicode.com\/posts\/30\", {\n  title: 'PUT request with Qwest',\n  body: 'PUT request',\n  userId: 30\n})\n.then(function(xhr, response) {\n  console.log(response)\n})\n.catch(function(e, xhr, response) {\n  console.log(e)\n});<\/code><\/pre>\n<p>ID\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u304f\u3001URL\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>JavaScript\u3067Qwest\u3092\u4f7f\u3063\u3066DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046<\/h4>\n<p>\u901a\u5e38\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001URL\u3068\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eID\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u524a\u9664\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eURL\u3068ID\u306e\u4e21\u65b9\u306f\u3001Qwest\u306e<code>delete()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u304c\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-js\">qwest.delete(\"https:\/\/jsonplaceholder.typicode.com\/posts\/30\")\n.then(function(xhr, response) {\n  console.log(response)\n})\n.catch(function(e, xhr, response) {\n  console.log(e)\n});<\/code><\/pre>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001ID\u304c30\u3067\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>JavaScript\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u3068\u3084\u308a\u3068\u308a\u3059\u308b\u6a5f\u80fd\u306f\u3001\u4f55\u5e74\u3082\u304b\u3051\u3066\u9032\u5316\u3092\u7d9a\u3051\u3066\u304d\u307e\u3057\u305f\u3002<a href=\"https:\/\/kinqsta.com\/blog\/frontend-developer\/\">JavaScript\u958b\u767a\u8005<\/a>\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u6d3b\u767a\u306b\u306a\u308b\u306b\u3064\u308c\u3001\u5909\u66f4\u304c\u52a0\u3048\u3089\u308c\u305f\u308a\u3001\u65b0\u3057\u3044\u30c4\u30fc\u30eb\u304c\u5c0e\u5165\u3055\u308c\u305f\u308a\u3057\u3066\u3001\u7d50\u679c\u7684\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u7c21\u5358\u306a\u51e6\u7406\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u65b9\u6cd5\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u3001\u81ea\u3089\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3084\u308a\u53d6\u308a\u3059\u308b\u969b\u306b\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u591a\u304f\u306e<a href=\"https:\/\/kinqsta.com\/jp\/blog\/javascript-libraries\/\">JavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\n<p>JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u3055\u307e\u3056\u307e\u306a\u4f8b\u3068\u8aac\u660e\u3092\u6271\u3044\u3001\u5185\u8535\u306eJavaScript\u30e1\u30bd\u30c3\u30c9\u3068\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066GET\u3001POST\u3001PUT\/PATCH\u3001DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u3068\u30c7\u30d7\u30ed\u30a4\u306b\u306f\u3001\u30b9\u30ad\u30eb\u3092\u554f\u308f\u305a\u3001\u9762\u5012\u306a\u4f5c\u696d\u304c\u3064\u304d\u3082\u306e\u3067\u3059\u3002\u305d\u3053\u3067Kinsta\u3067\u306f\u3001\u7121\u6599\u3067\u4f7f\u3048\u308b\u30c4\u30fc\u30eb\u300cDevKinsta\u300d\u3092\u3054\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u30022\u4e075,000\u4eba\u4ee5\u4e0a\u306e\u958b\u767a\u8005\u3001\u30a6\u30a7\u30d6\u30c7\u30b6\u30a4\u30ca\u30fc\u3001\u30d5\u30ea\u30fc\u30e9\u30f3\u30b5\u30fc\u306e\u65b9\u3005\u306b\u3001WordPress\u30c6\u30fc\u30de\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3069\u306e\u958b\u767a\u306b\u3054\u5229\u7528\u3044\u305f\u3060\u3044\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/kinqsta.com\/jp\/devkinsta\/\">\u8a73\u3057\u304f\u306f\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30a4\u30c8\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u9593\u306e\u3084\u308a\u53d6\u308a\u306f\u3001 &#8230;<\/p>\n","protected":false},"author":240,"featured_media":38134,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[708,495,482,184,45],"topic":[778],"class_list":["post-38133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-http-requests","tag-http-status-codes","tag-javascript","tag-web-development","tag-webdev","topic-javascript-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5<\/title>\n<meta name=\"description\" content=\"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-18T08:06:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T19:48:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ihechikara Abba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ihechikara Abba\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\"},\"author\":{\"name\":\"Ihechikara Abba\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/ac373ce22a016949523f7e464fdcae26\"},\"headline\":\"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2022-10-18T08:06:09+00:00\",\"dateModified\":\"2025-10-01T19:48:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\"},\"wordCount\":397,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\",\"keywords\":[\"http requests\",\"HTTP Status Codes\",\"JavaScript\",\"web development\",\"webdev\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\",\"name\":\"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\",\"datePublished\":\"2022-10-18T08:06:09+00:00\",\"dateModified\":\"2025-10-01T19:48:20+00:00\",\"description\":\"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinqsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\",\"item\":\"https:\/\/kinqsta.com\/jp\/topics\/javascript-tutorials\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinqsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/ac373ce22a016949523f7e464fdcae26\",\"name\":\"Ihechikara Abba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/483df106a6ba0c29683578302f74008c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/483df106a6ba0c29683578302f74008c?s=96&d=mm&r=g\",\"caption\":\"Ihechikara Abba\"},\"description\":\"Ihechikara is a software developer and technical writer. He enjoys writing articles on web technologies, programming, and IT-related topics. Connect with Ihechikara on Twitter.\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/author\/ihechivinabba\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","description":"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002","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:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/","og_locale":"ja_JP","og_type":"article","og_title":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","og_description":"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002","og_url":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-10-18T08:06:09+00:00","article_modified_time":"2025-10-01T19:48:20+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","type":"image\/png"}],"author":"Ihechikara Abba","twitter_card":"summary_large_image","twitter_description":"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002","twitter_image":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Ihechikara Abba","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#article","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/"},"author":{"name":"Ihechikara Abba","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/ac373ce22a016949523f7e464fdcae26"},"headline":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","datePublished":"2022-10-18T08:06:09+00:00","dateModified":"2025-10-01T19:48:20+00:00","mainEntityOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/"},"wordCount":397,"commentCount":0,"publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","keywords":["http requests","HTTP Status Codes","JavaScript","web development","webdev"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/","url":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/","name":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","datePublished":"2022-10-18T08:06:09+00:00","dateModified":"2025-10-01T19:48:20+00:00","description":"Kinsta\u306e\u77e5\u8b58\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u304a\u652f\u6255\u3044\u306b\u95a2\u3059\u308b\u3082\u306e\u304b\u3089\u3001\u4e00\u822c\u7684\u306aWordPress\u3084\u30b5\u30dd\u30fc\u30c8\u306b\u95a2\u3059\u308b\u3082\u306e\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3054\u8cea\u554f\u306b\u304a\u7b54\u3048\u3057\u3066\u3044\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#primaryimage","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/javascript-http-request.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinqsta.com\/jp\/blog\/javascript-http-request\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinqsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"JavaScript\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9","item":"https:\/\/kinqsta.com\/jp\/topics\/javascript-tutorials\/"},{"@type":"ListItem","position":3,"name":"JavaScript\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinqsta.com\/jp\/#website","url":"https:\/\/kinqsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinqsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinqsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinqsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/ac373ce22a016949523f7e464fdcae26","name":"Ihechikara Abba","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/483df106a6ba0c29683578302f74008c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/483df106a6ba0c29683578302f74008c?s=96&d=mm&r=g","caption":"Ihechikara Abba"},"description":"Ihechikara is a software developer and technical writer. He enjoys writing articles on web technologies, programming, and IT-related topics. Connect with Ihechikara on Twitter.","url":"https:\/\/kinqsta.com\/jp\/blog\/author\/ihechivinabba\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/38133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/comments?post=38133"}],"version-history":[{"count":13,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/38133\/revisions"}],"predecessor-version":[{"id":44483,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/38133\/revisions\/44483"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/translations\/dk"},{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38133\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media\/38134"}],"wp:attachment":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media?parent=38133"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/tags?post=38133"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/topic?post=38133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}