Skip to content

Separators & Comments

Three or more consecutive # characters (###) on a line separate requests within a file.

Universal Supported identically by all major implementations.

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/users
Content-Type: application/json
{"name": "New User"}
###
DELETE https://api.example.com/users/2

Text after ### on the same line is treated as a comment or request title by JetBrains, httpyac, and kulala.nvim:

### Get all users
GET https://api.example.com/users
### Create a new user
POST https://api.example.com/users
JetBrainshttpyackulala

In httpyac, a global region (a region with ### but no request line) applies its variables and metadata to all requests in the file.

Two line-comment styles are universally supported:

# This is a comment
// This is also a comment
Universal Supported identically by all major implementations.

Both # and // comments are recognized by VS Code REST Client, JetBrains, httpyac, Visual Studio 2022, and kulala.nvim.

httpyac

httpyac additionally supports multi-line block comments:

/* This is a
multi-line comment */

This is unique to httpyac.

Comments serve double duty as metadata annotations when they contain @ directives. See Section 7: Metadata & Annotations for details.

# @name myRequest
# @no-redirect
GET https://api.example.com/users