Skip to content

Importing .http files (REST Client)

The .http and .rest files of the REST Client extension for VS Code are a very widespread format in repositories. Restorm imports them directly.

File ▸ Import (Ctrl+I) then the .http or .rest file. Pasted content is recognised too.

ElementWhat Restorm makes of it
Blocks separated by ###One request each
The request line METHOD URL [HTTP/x.x]The method and the URL
Headers up to the first blank lineThe headers
The body after the blank lineThe body, as plain text
The @name = value preambleThe folder’s environment variables
# @name <identifier>The request’s name
{{variable}}Kept as it is — the syntax is the same as Restorm’s

Good news on that last point: REST Client’s variable syntax is Handlebars’, so your files arrive with their variables already working.