{
    "componentChunkName": "component---src-components-blog-post-jsx",
    "path": "/blog/2020-02-28-HTTP-head/",
    "result": {"data":{"site":{"siteMetadata":{"author":"Monica Powell","siteUrl":"https://www.aboutmonica.com"}},"mdx":{"id":"50177180-5290-5299-b503-191bdcca8439","timeToRead":1,"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"HTTP HEAD request\",\n  \"date\": \"2020-02-28T13:19:10.285Z\",\n  \"template\": \"post\",\n  \"draft\": true,\n  \"slug\": \"2020-02-28-HTTP-head\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Some common HTTP requests are \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"DELETE\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GET\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"PATCH\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"POST\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"PUT\"), \". However, there are other valid HTTP requests such as \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"CONNECT\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"OPTIONS\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"TRACE\"), \".\"), mdx(\"p\", null, \"I learned more about \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \" request while adding support for \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \" requests to a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GET\"), \" endpoint. An HTTP \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \" request is \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"similar\"), \" to a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GET\"), \" request but it only cares about the header response to a request and ignores the body that was sent. A \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \" request can be made to determine whether or not a cache resource is stale or not or get additional information about a resource from its response headers alone (for e.g., it's size or whether or not it exists). Since a body isn't returned \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"HEAD\"), \" requests require less bandwith than similar \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"GET\"), \" requests.\"), mdx(\"p\", null, \"Learn more at: \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD\"\n  }, \"HTTP - METHODS - HEAD | MDN\")));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{},"frontmatter":{"title":"HTTP HEAD request","date":"February 28, 2020","description":null,"tags":null}},"allWebMentionEntry":{"edges":[]}},"pageContext":{"permalink":"https://www.aboutmonica.com/blog/2020-02-28-HTTP-head/","slug":"/blog/2020-02-28-HTTP-head/","prev":{"id":"fa5ef23b-ccf1-5713-acb2-a7771f165a22","frontmatter":{"title":"Understanding Reduce in JavaScript","category":["tutorial"],"date":"2020-03-29T22:21:35.600Z","slug":"2020-03-29-understanding-reduce-in-javascript","tags":["JavaScript","Functional Programming","Tutorial"],"redirects":null},"fields":{"slug":"/blog/2020-03-29-understanding-reduce-in-javascript/"}},"next":{"id":"9265b187-a105-5ef9-bd16-dbde62fa1238","frontmatter":{"title":"Finally(), I'll clean up my Promises!","category":null,"date":"2020-02-25T13:19:10.285Z","slug":"2020-02-25-finally","tags":null,"redirects":null},"fields":{"slug":"/blog/2020-02-25-finally/"}}}},
    "staticQueryHashes": ["1977783444","764694655"]}