You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Save the response body to a file: >> ./out.json, >>! ./out.json and apic run --output #33
REST Client and JetBrains write a response to disk with >> ./file (create) and >>! ./file (overwrite) after the request. apic strips those lines with a warning (internal/httpfile/parse.go:260-292). Downloading a report, saving a fixture for a later < file body, or keeping a binary response are all impossible today, and response bodies are Go strings so binary is not even safe.
>> path writes the raw response body to path (relative to the .http file, confined to the project root) and fails if the file exists; >>! path overwrites. Directories are created. File mode 0600 when the response came from a request whose headers or query used a secret source, else 0644.
Response bodies become []byte end to end; the JSON view for selectors, --json and the UI is derived from the bytes. Binary responses print a size and content type instead of garbage in run output.
apic run --output <file> does the same for one run without editing the file.
--json adds "saved_to": "fixtures/daily.csv"; the UI response tab says where the body went.
apic validate reports a path outside the project as an error.
internal/runner/runner.go (readBody/response handling around 552), body.go
internal/cli/run.go, internal/output/render.go
Docs
docs/format.md (Structure table row replaces the "skipped" note), docs/cli.md (run flag and JSON field), docs/cookbook.md ("Download a file" recipe).
Tests
Parser cases for both forms; runner test writing a binary body and comparing bytes; refusal of an existing file without !; path-escape refusal; --json field.
Shipped in #108 (merged as 1c7ba70): >> file creates, >>! file overwrites, confined to the project (bad-save-path in validate) and 0600 when a secret went into the request; apic run --output <file> for one request; saved_to in the JSON; binary bodies summarised in the output, the UI and the HTML report, and carried as base64 with body_encoding under --json. See saveBody in internal/runner/runner.go and the parser's SaveTo.
Activity
Save the response body to a file: `>> file`, `>>! file` and run --out…
dataGriff commentedon Sep 22, 2026
Shipped in #108 (merged as 1c7ba70):
>> filecreates,>>! fileoverwrites, confined to the project (bad-save-pathin validate) and0600when a secret went into the request;apic run --output <file>for one request;saved_toin the JSON; binary bodies summarised in the output, the UI and the HTML report, and carried as base64 withbody_encodingunder--json. SeesaveBodyininternal/runner/runner.goand the parser'sSaveTo.Generated by Claude Code