Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache/core: update docs for request headers in transactions #144

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

joeshaw
Copy link
Member

@joeshaw joeshaw commented Oct 11, 2024

Attempting to set request headers in write options for
Transaction.Insert or Transaction.InsertAndStreamBack returns
ErrInvalidArgument. The docs previously only stated this for
Transaction.Update.

Attempting to set request headers in write options for
Transaction.Insert or Transaction.InsertAndStreamBack returns
ErrInvalidArgument.  The docs previously only stated this for
Transaction.Update.
@dgryski
Copy link
Member

dgryski commented Oct 11, 2024

Do you have a link to the Rust SDK docs or other source for this change?

@joeshaw
Copy link
Member Author

joeshaw commented Oct 11, 2024

The best I have here is https://docs.rs/fastly/latest/fastly/cache/core/struct.TransactionInsertBuilder.html#method.vary_by but it's not an exact mapping because the Rust SDK uses the builder pattern and the Go SDK uses an options struct.

This was found by a customer report, and then I found the error handling for this on the insert handler in the Compute platform's code. I can follow up with you privately with the links to those.

Copy link
Member

@dgryski dgryski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joeshaw joeshaw merged commit 2bfed40 into main Oct 11, 2024
11 checks passed
@joeshaw joeshaw deleted the joeshaw/request-header-insert-docs branch October 11, 2024 18:00
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.

2 participants