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

Add the ability to have safe params #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cheerfulstoic
Copy link

The issue I'm trying to fix: we're sending Base64-encoded files in some SOAP requests and seeing overhead of ~200ms per request that we'd like to avoid. After some investigation I found that it's possible to skip the escaping of values in XmlBuilder.

This adds the ability for users of soap to specify a {:__safe, _} value for a param. This will pass a {:safe, _} tuple down into XmlBuilder where we can avoid escaping strings that don't need to be escaped. I chose {:__safe, _} instead of {:safe, _} for soap because somebody might want to have a <safe> tag in their XML. Happy to talk that through.

This will pass a {:safe, _} tuple down into XmlBuilder where we can avoid escaping strings that don't need to be escaped
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.

1 participant