bowire.har.import
Convert a HAR 1.2 trace into a Bowire recording, optionally redact credential headers, and write or return JSON for replay and mocking.
Instructions
Convert a HAR 1.2 trace into a Bowire recording. Reads the HAR file at harPath, optionally writes the recording JSON to outPath (use "-" or omit to return the JSON inline), and returns a summary { recordingId, stepCount, authHeaders, redacted, outPath?, recording? }. Set redactSecrets to strip credential headers (Authorization, Cookie, X-Api-Key, …) before import. Pair with bowire.mock.start { recording: } to serve the trace back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional recording name. Defaults to the HAR's creator name or "Imported HAR". | |
| harPath | Yes | Path to a HAR 1.2 document on disk. | |
| outPath | No | Optional output path for the resulting recording JSON. Use "-" or omit to return the recording inline in the response. | |
| redactSecrets | No | When true, strip credential-bearing header values (Authorization, Cookie, X-Api-Key, …) before import so live tokens/cookies aren't persisted. Default false. |