code terminal icon
• 🍿 1 min read

HTTP HEAD request

Animated Monica

By: Monica Powell


Some common HTTP requests are DELETE, GET, PATCH, POST, PUT. However, there are other valid HTTP requests such as CONNECT, HEAD, OPTIONS and TRACE.

I learned more about HEAD request while adding support for HEAD requests to a GET endpoint. An HTTP HEAD request is similar to a GET request but it only cares about the header response to a request and ignores the body that was sent. A 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 HEAD requests require less bandwith than similar GET requests.

Learn more at: HTTP - METHODS - HEAD | MDN