Skip to content

add support for urlencode/decode functions to rhai engine#2053

Merged
garypen merged 5 commits intodevfrom
garypen/2052-encode-decode
Nov 10, 2022
Merged

add support for urlencode/decode functions to rhai engine#2053
garypen merged 5 commits intodevfrom
garypen/2052-encode-decode

Conversation

@garypen
Copy link
Contributor

@garypen garypen commented Nov 7, 2022

urlencode/decode strings from your rhai scripts.

fixes: #2052

@Geal
Copy link
Contributor

Geal commented Nov 8, 2022

could you add a more helpful error message in register_indexer_set for HeaderMap to tell that it expects ASCII?

@garypen
Copy link
Contributor Author

garypen commented Nov 8, 2022

could you add a more helpful error message in register_indexer_set for HeaderMap to tell that it expects ASCII?

We are propagating the underlying error message, so the user will get:

invalid HTTP header name

as their catchable error

@garypen garypen merged commit 0390a85 into dev Nov 10, 2022
@garypen garypen deleted the garypen/2052-encode-decode branch November 10, 2022 11:14
@abernix abernix added this to the v1-NEXT milestone Nov 15, 2022
This was referenced Nov 15, 2022
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.

add support for urlencode/urldecode to rhai

3 participants