Documentation
¶
Index ¶
Constants ¶
View Source
const ( BodyPlaceholder = "[[SECTOOL_BODY_FILE: body]]" DefaultDir = "sectool-requests" )
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64Body ¶
DecodeBase64Body decodes a base64-encoded body string to bytes.
func ReconstructRequest ¶
ReconstructRequest rebuilds the full HTTP request from headers and body.
func ResolvePath ¶
ResolvePath resolves a bundle path argument. Tries the argument as-is first, then as ./sectool-requests/<arg>/.
func Write ¶
func Write(flowID, url, method, reqHeaders string, reqBody []byte, respHeaders string, respBody []byte) (string, error)
Write writes a request bundle to ./sectool-requests/<flowID>/. Uses restrictive permissions (0700 dirs, 0600 files), rejects symlinks, and rejects a flowID containing path separators or other traversal characters.
Types ¶
Click to show internal directories.
Click to hide internal directories.