DEV Community

Daniel Lee
Daniel Lee

Posted on • Edited on

TIL: HTTP methods are case-sensitive

When making different API calls, for example, using fetch() api, request methods are case-sensitive (all UPPER-CASE) according to RFCs 7230 and 7231

The method token is case-sensitive because it might be used as a gateway to object-based systems with case-sensitive method names.

fetch(<url>, { method: [GET, PATCH, PUT, DELETE, etc.], ...}

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more