StoicBuilder

HandbookV the OfficinaEnvironments in an HTTP client

Vthe Officina, Use the tools

Environments in an HTTP client

1 min readUpdated 28 November

In plain words

An environment in an HTTP client is a set of variables, such as the base address and a token, that lets the same requests run against local, staging or production.

Where you see it

A dropdown near the top of the client, set to something like Local or Production. Requests say {{baseUrl}}/api/projects, and switching the dropdown swaps in http://localhost:3000 or your live address.

Environmentsconfig
Local baseUrl = http://localhost:3000 token = (secret) local test userProduction baseUrl = https://harbor.example token = (secret) live test account Request GET {{baseUrl}}/api/projects
The request only names the variables. Switch the environment and the same request goes somewhere else.

What goes wrong

  1. Typing the address into every request

    Fifty requests with http://localhost:3000 written out need fifty edits for staging. Put it in a baseUrl variable once.

  2. Sending to production by mistake

    The dropdown still says Production from yesterday, and your test DELETE removes a real customer's project. Check the environment before any request that changes data.

  3. Committing real tokens with the collection

    Clients that save collections as files, like Bruno, can carry tokens into Git. Mark tokens as secret variables so their values stay on your machine.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
List the variables I need in my HTTP client's Local, Staging and Production environments: the base address for each, any API keys by name only, and how to get a token for a test user. Don't write real secret values into any file.

Quick check

Sign in to earn +10 XP for it

You tested Harbor's Delete project request locally yesterday. Before sending it again today, what do you check first?

Got a prompt that touches environments in an HTTP client?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.