DataUrl (data_url v0.1.0) View Source

Struct and functions for representing and parsing data: URLs

Link to this section Summary

Functions

Parse a data: URL into a %DataUrl{} struct

Link to this section Types

Specs

t() :: %DataUrl{data: binary(), mime_type: String.t()}

Link to this section Functions

Specs

parse(String.t()) :: {:ok, t()} | {:error, any()}

Parse a data: URL into a %DataUrl{} struct