Skip to content

Add base64 response attributes to data source (#62) - #169

Merged
devops-rob merged 1 commit into
mainfrom
feat/62-binary-response-base64
Jul 29, 2026
Merged

Add base64 response attributes to data source (#62)#169
devops-rob merged 1 commit into
mainfrom
feat/62-binary-response-base64

Conversation

@devops-rob

Copy link
Copy Markdown
Owner

Summary

  • Add computed response_base64 and sensitive_response_base64 to the terracurl_request data source for lossless binary response download via RFC 4648 base64 encoding.
  • Encode raw response bytes (not the string-coerced body); empty responses encode to "", not "{}".
  • Warn when response bytes are not valid UTF-8 so users know to use response_base64.
  • Add example, guide note, tests, and CHANGELOG 2.11.0. Closes [Feature request] Download binary files through the data source #62.

Test plan

  • golangci-lint run --config=.golangci.yml ./...
  • Unit tests for base64 encoding and sensitive routing
  • Acceptance tests with binary httpmock payloads

Made with Cursor

Expose response_base64 and sensitive_response_base64 computed attributes so binary HTTP response bodies are available without UTF-8 corruption. Closes #62.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@devops-rob
devops-rob merged commit e7803f6 into main Jul 29, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Download binary files through the data source

1 participant