brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] brooklyn-docs pull request #148: Adds doc for urlEncode DSL
Date Mon, 27 Feb 2017 09:32:42 GMT
Github user aledsage commented on a diff in the pull request:
    --- Diff: guide/yaml/ ---
    @@ -213,6 +213,9 @@ concise DSL defined here:
     * `$brooklyn:formatString("pattern e.g. %s %s", "field 1", "field 2")` returns a future
which creates the formatted string
       with the given parameters, where parameters may be strings *or* other tasks such as
    +* `$brooklyn:urlEncode("val")` returns a future which creates a string with the characters
    +  so it is a valid part of a URL. The parameter can be a string *or* another task. For
    +  `$brooklyn:urlEncode($brooklyn:config(\"mykey\"))`
    --- End diff --
    Agreed - I've added:
    It uses "www-form-urlencoded" for the encoding, which is appropriate for query 
    parameters but not for some other parts of the URL (e.g. space is encoded as '+').

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message