---
name: "http_uri"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/http_uri"
---

# http\_uri(3erl)

Old URI utility module, use uri\_string instead

## NAME

http\_uri - Old URI utility module, use uri\_string instead

## DESCRIPTION

This module is deprecated since OTP 23. Use the module uri\_string to properly handle URIs, this is the recommended module since OTP 21.

## DATA TYPES

Type definitions that are used more than once in this module:

*boolean() = true \| false*

*string()* = list of ASCII characters

## URI DATA TYPES

Type definitions that are related to URI:

- ***uri() = string() \| binary()*:**

  Syntax according to the URI definition in RFC 3986, for example, "http://www.erlang.org/"

For more information about URI, see RFC 3986.

## EXPORTS

**decode(HexEncodedURI) -\> URI**\

Types:

HexEncodedURI = string() \| binary() - A possibly hexadecimal encoded URI\
 URI = uri()\

Decodes a possibly hexadecimal encoded URI.

**encode(URI) -\> HexEncodedURI**\

Types:

URI = uri()\
 HexEncodedURI = string() \| binary() - Hexadecimal encoded URI\

Encodes a hexadecimal encoded URI.
