mirror of
https://github.com/correl/urilib.git
synced 2024-11-25 11:09:57 +00:00
27 lines
885 B
Erlang
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()}).
|