request file

A plain text file listing HTTP requests with their expected statuses, runnable by a small tool so a journey can be replayed and checked.

In more detail

Each block names a request, can declare the expected status and capture a value, such as a token, for later requests. Editors and tools such as the REST Client extensions use the same .http format.

Example

### the token opens the guarded route
# expect 200
GET {{base}}/private
Authorization: Bearer {{token}}

Related terms

Taught in

References