View Source HTTPSpec.Request.URL (http_spec v2.3.0)

Helpers to handle URL.

Summary

Functions

Parses an URL.

Functions

@spec parse(String.t()) :: map()

Parses an URL.

Examples

URL.parse("http://www.example.com/?say=hi#mom")

# Returns:
#
# %{
#    scheme: :http,
#    host: "www.example.com",
#    port: 80,
#    path: "/",
#    query: "say=hi",
#    fragment: "mom"
#  }