Documentation
¶
Overview ¶
Package state persists variables scripts set via "client.global" across separate "httpfly run" invocations, so e.g. an auth token fetched by one run is still there the next time you run a different request that needs it.
Index ¶
Constants ¶
const Dir = ".httpfly"
Dir is the directory httpfly stores its state in, alongside the .http file being run.
const FileName = "state.json"
FileName is the state file within Dir.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load returns the persisted global variables for the given directory and environment name (pass "" if -env wasn't used; environments are kept in separate buckets so a value set while running against "prod" never leaks into a "dev" run). A missing state file, or a file with no bucket for this environment yet, is normal -- nothing has been persisted yet -- and returns an empty map, not an error.
Types ¶
This section is empty.