Note: There is a newer version (2.6.0) of this package available. Click here to view docs for the latest version.

ballerina/url Ballerina library
2.5.0
Functions
decode
Isolated Function
Decodes the given string value into a string
using the provided charset.
string value = "http://www.domain.com/?param1=http%3A%2F%2Fxyz.com%2F%3Fa%3D12%26b%3D55¶m2=99"; string decoded = check url:decode(value, "UTF-8");
encode
Isolated Function
Encodes the given string value into a string
using the provided charset.
string value = "param1=http://xyz.com/?a=12&b=55¶m2=99"; string encoded = check url:encode(value, "UTF-8");
Errors
url: Error
Distinct
Represents the error type of the module.
Import
import ballerina/url;
Metadata
Released date: 5 months ago
Version: 2.5.0
License: Apache-2.0
Compatibility
Platform: java21
Ballerina version: 2201.11.0
GraalVM compatible: Yes
Pull count
Total: 195259
Current verison: 16
Weekly downloads
Keywords
url encoding
url decoding
Contributors