Functions of ballerina.net.uri package
function encode(string url) (string )
Encodes the given URL
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
url | string | URL to be encoded |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | The encoded url |
function getQueryParam(message m, string key) (string )
Gets a query parameter value for a given key
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
m | message | The message object |
key | string | The key of the query param to get from the message |
Return Parameters:
Return Variable | Data Type | Description |
---|---|---|
string | The query parameter |