Customizing with Request Headers

Request headers can be set by the client to dynamically control mocking behavior.

Supported Headers

X-Stoobly-Public-Directory-Path

Path to a folder that contains files or folders that contains files that match a request's path. Path is relative to where the stoobly-agent run command was run.

X-Stoobly-Request-Key

Customizes which request response should be used

Response-Fixtures-Path

Path to a YAML file that contains fixture specifications. Path is relative to where the stoobly-agent run command was run.

X-Stoobly-Scenario-Key

Customizes which scenario should be used

Last updated

Was this helpful?