Skip to content

Bodies

The Body tab offers eight types. The one you pick decides how the body is edited, and what Content-Type is sent — which you can always see on the Headers tab, alongside everything else the client adds.

NoneNo body.
JSONapplication/json, syntax-coloured.
XMLapplication/xml.
GraphQLQuery and variables — see GraphQL.
Texttext/plain, uncoloured on purpose.
Formapplication/x-www-form-urlencoded, edited as fields.
Multipartmultipart/form-data, fields and files.
BinaryA single file, streamed from disk.

SOAP is not in this list because it is chosen in the method selector, which sets the verb and scaffolds the envelope together. See SOAP.

Syntax colouring

JSON, XML and GraphQL bodies are coloured with VS Code's own grammars and themes, so the editor looks like the editor you already use.

Text is deliberately left plain. Colouring it would be inventing structure that is not there — worse than no colour, because it would look like the editor understood something.

Variables in bodies

{{name}} works inside a body as it does everywhere else, and the resolved and unresolved states are painted on top of the syntax colouring rather than instead of it.

json
{
  "host": "{{host}}",
  "auth": "Bearer {{token}}"
}

Binary bodies

A binary body is streamed from disk rather than read into memory, so uploading something large does not depend on it fitting in RAM. The Content-Type is guessed from the file extension and can be overridden by setting the header yourself.

No account. No cloud. No telemetry.