urilib/include/urilib.hrl
2016-01-08 22:06:32 -05:00

27 lines
885 B
Erlang

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