This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Module : encoding

Module Overview

This module provides the necessary utilities, which are required to encode and decode content using different URL encoding mechanisms and algorithms.

For information on the operations, which you can perform with this module, see the below Functions.

Records

Detail

Record type to hold the details of an error.

Functions

decodeBase64Url

Decodes the Base64 URL encoded string into a byte array.

decodeUriComponent

Decodes the given URI component into a string using the provided charset.

encodeBase64Url

Returns the Base64 URL encoded string value of the given byte array.

encodeUriComponent

Encodes the given URI component into a string using the provided charset.

Constants

ENCODING_ERROR

Represents the Encoding error code.

Errors

Error

Represents the Encoding error type with details.