Skip to content

Commit

Permalink
docs: add comments for the url_host_type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Aug 25, 2023
1 parent c998e47 commit d192e17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/ada/url_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ namespace ada {
* Type of URL host as an enum.
*/
enum url_host_type : uint8_t {
/**
* Represents common URLs such as "https://www.google.com"
*/
DEFAULT = 0,
/**
* Represents ipv4 addresses such as "http://127.0.0.1"
*/
IPV4 = 1,
/**
* Represents ipv6 addresses such as
* "http://[2001:db8:3333:4444:5555:6666:7777:8888]"
*/
IPV6 = 2,
};

Expand Down

0 comments on commit d192e17

Please sign in to comment.