Request separators
Section titled “Request separators”Three or more consecutive # characters (###) on a line separate requests within a file.
This is the single most universal syntax element — every known implementation supports it identically.
GET https://api.example.com/users/1
###
POST https://api.example.com/usersContent-Type: application/json
{"name": "New User"}
###
DELETE https://api.example.com/users/2Separator as title
Section titled “Separator as title”Text after ### on the same line is treated as a comment or request title by JetBrains, httpyac, and kulala.nvim:
### Get all usersGET https://api.example.com/users
### Create a new userPOST https://api.example.com/usersIn httpyac, a global region (a region with ### but no request line) applies its variables and metadata to all requests in the file.
Comments
Section titled “Comments”Two line-comment styles are universally supported:
# This is a comment// This is also a commentBoth # and // comments are recognized by VS Code REST Client, JetBrains, httpyac, Visual Studio 2022, and kulala.nvim.
Block comments
Section titled “Block comments”httpyac additionally supports multi-line block comments:
/* This is a multi-line comment */This is unique to httpyac.
Comments as metadata
Section titled “Comments as metadata”Comments serve double duty as metadata annotations when they contain @ directives. See Section 7: Metadata & Annotations for details.
# @name myRequest# @no-redirectGET https://api.example.com/users