ADDRESS
Where the call goes.
.gctf— a gRPC target ashost:port, or a scheme the transport understands..httf— an HTTP origin,http://host:portorhttps://host. Without a scheme,http://is implied.
When to use
- Use in the file when the target is fixed
- Omit when the target is supplied by the environment or
GRPCTESTIFY_ADDRESS
Minimal example
php
--- ADDRESS ---
localhost:4770httf
--- ADDRESS ---
https://api.example.comWhat wins
In order:
- The document's own
ADDRESS - The address the chain started with — see below
- In the playground only: the address of the active environment (
GRPC_ADDRESSin.grpctestify/.env.<name>). The CLI (run,call,bench) never reads.env.<name>files GRPCTESTIFY_ADDRESS- The transport's default (
localhost:4770for gRPC; an HTTP call has no default and needs an address)
In a chain
A file splits into steps at every ENDPOINT. A step without its own ADDRESS dials the one the chain started with, so a chain names its target once:
httf
--- ADDRESS ---
http://127.0.0.1:8899
--- ENDPOINT ---
GET /v1/users
--- EXTRACT ---
user = .id
--- ENDPOINT ---
GET /v1/users/{{user}}Both steps dial http://127.0.0.1:8899. A later step that declares its own ADDRESS keeps it, and the steps after that one inherit that address instead.
Rules
- One
ADDRESSper document - Keep environment-specific values in env vars for CI portability