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

feat(builder): add (set) value method #222

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MrAntix
Copy link

@MrAntix MrAntix commented Jan 30, 2024

this allows for builder patterns where the value is, or is not, set

mock.set_cookie("NAME", |b| b.value("VALUE").path("/"));

@SergioBenitez
Copy link
Member

Please remove all changes with respect to formatting. I'll take a look as soon as that's removed.

@MrAntix
Copy link
Author

MrAntix commented Jan 30, 2024

Ah, sorry, thanks for the quick check, I should have noticed

I have taken the liberty of adding a settings file for VS Code which will stop this happening again, should people have auto format switched on - is that ok?

Ant

@MrAntix MrAntix force-pushed the builder-add-value branch 2 times, most recently from 61b5495 to 166f306 Compare January 30, 2024 17:34
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