mirror of
https://github.com/correl/urilib.git
synced 2024-11-25 19:19:56 +00:00
28 lines
973 B
Erlang
28 lines
973 B
Erlang
|
%% =============================================================================
|
||
|
%% @author Gavin M. Roy <gavinmroy@gmail.com>
|
||
|
%% @copyright 2016
|
||
|
%% @end
|
||
|
%% =============================================================================
|
||
|
|
||
|
-record(authority, {host :: string(),
|
||
|
port :: integer()}).
|
||
|
|
||
|
-record(userinfo, {username :: string() | undefined,
|
||
|
password :: string() | undefined}).
|
||
|
|
||
|
-record(uri, {scheme :: atom(),
|
||
|
userinfo :: #userinfo{} | undefined,
|
||
|
authority :: #authority{},
|
||
|
path :: string() | undefined,
|
||
|
query,
|
||
|
fragment :: string() | undefined}).
|
||
|
|
||
|
-record(url, {scheme :: atom(),
|
||
|
username :: string() | undefined,
|
||
|
password :: string() | undefined,
|
||
|
host :: string(),
|
||
|
port :: integer(),
|
||
|
path :: string() | undefined,
|
||
|
query,
|
||
|
fragment :: string() | undefined}).
|