Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.
Note: This feature is available in Web Workers.
The method read-only property of the Request interface contains the request's method (GET, POST, etc.)
A String indicating the method of the request.
In the following snippet, we create a new request using the Request() constructor (for an image file in the same directory as the script), then save the method of the request in a variable:
| Fetch # ref-for-dom-request-method② |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.