2016-01-09 03:00:14 +00:00
|
|
|
%% =============================================================================
|
|
|
|
%% @author Gavin M. Roy <gavinmroy@gmail.com>
|
|
|
|
%% @copyright 2016
|
|
|
|
%% @end
|
|
|
|
%% =============================================================================
|
|
|
|
|
|
|
|
-record(authority, {host :: string(),
|
|
|
|
port :: integer()}).
|
|
|
|
|
2016-01-09 03:06:32 +00:00
|
|
|
-record(userinfo, {username :: string(),
|
|
|
|
password :: string()}).
|
2016-01-09 03:00:14 +00:00
|
|
|
|
|
|
|
-record(uri, {scheme :: atom(),
|
2016-01-09 03:06:32 +00:00
|
|
|
userinfo :: #userinfo{},
|
2016-01-09 03:00:14 +00:00
|
|
|
authority :: #authority{},
|
2016-01-09 03:06:32 +00:00
|
|
|
path :: string(),
|
|
|
|
query :: list(),
|
|
|
|
fragment :: string()}).
|
2016-01-09 03:00:14 +00:00
|
|
|
|
|
|
|
-record(url, {scheme :: atom(),
|
2016-01-09 03:06:32 +00:00
|
|
|
username :: string(),
|
|
|
|
password :: string(),
|
2016-01-09 03:00:14 +00:00
|
|
|
host :: string(),
|
|
|
|
port :: integer(),
|
2016-01-09 03:06:32 +00:00
|
|
|
path :: string(),
|
|
|
|
query :: list(),
|
|
|
|
fragment :: string()}).
|