TIL: HTTP methods are case-sensitive
Daniel Lee

Daniel Lee @dleedev365

About: Records over Memories

Location:
Vancouver, BC Canada
Joined:
Feb 18, 2024

TIL: HTTP methods are case-sensitive

Publish Date: Sep 19 '24
0 0

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.], ...}

Comments 0 total

    Add comment