---
schema_version: "1"
id: 7e084a87e3871c32853e61802f728ac2d0c7e48f92fc1c224ee032fc48b23e30
title: URL (dw::core::URL)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-url.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-url
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f2a1a1bf8fba1b096830baed1e36401c73f1047b65f02b2f54aed12defb1c416
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# URL (dw::core::URL)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This module contains helper functions for working with URIs.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::core::URL` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-compose">compose</a></p></td><td><p>Uses a custom string interpolator to replace URL components with a <code>encodeURIComponent</code> result. You can call this function using the standard call, or a simplified version.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-decodeuri">decodeURI</a></p></td><td><p>Decodes the escape sequences (such as <code>%20</code>) in a URI.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-decodeuricomponent">decodeURIComponent</a></p></td><td><p>Decodes a Uniform Resource Identifier (URI) component previously created by <code>encodeURIComponent</code> or a similar routine.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-encodeuri">encodeURI</a></p></td><td><p>Encodes a URI with UTF-8 escape sequences.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-encodeuricomponent">encodeURIComponent</a></p></td><td><p>Escapes certain characters in a URI component using UTF-8 encoding.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.9/dw-url-functions-parseuri">parseURI</a></p></td><td><p>Parses a URL and returns a <code>URI</code> object.</p></td></tr></tbody></table>

## Types

- [URL Types](https://docs.mulesoft.com/dataweave/2.9/dw-url-types)
