icinga2/lib/remote/url-characters.hpp

30 lines
815 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2015-06-26 15:37:47 +02:00
#ifndef URL_CHARACTERS_H
#define URL_CHARACTERS_H
#define ALPHA "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
#define NUMERIC "0123456789"
2015-07-29 13:09:42 +02:00
#define UNRESERVED ALPHA NUMERIC "-._~" "%"
2015-06-26 15:37:47 +02:00
#define GEN_DELIMS ":/?#[]@"
#define SUB_DELIMS "!$&'()*+,;="
#define PCHAR UNRESERVED SUB_DELIMS ":@"
2016-07-25 10:54:17 +02:00
#define PCHAR_ENCODE UNRESERVED ":@"
2015-06-26 15:37:47 +02:00
#define ACSCHEME ALPHA NUMERIC ".-+"
//authority = [ userinfo "@" ] host [ ":" port ]
#define ACUSERINFO UNRESERVED SUB_DELIMS
2015-06-26 15:37:47 +02:00
#define ACHOST UNRESERVED SUB_DELIMS
#define ACPORT NUMERIC
#define ACPATHSEGMENT PCHAR
2016-07-25 10:54:17 +02:00
#define ACPATHSEGMENT_ENCODE PCHAR_ENCODE
2015-06-26 15:37:47 +02:00
#define ACQUERY PCHAR "/?"
2016-07-25 10:54:17 +02:00
#define ACQUERY_ENCODE PCHAR_ENCODE "/?"
2015-06-26 15:37:47 +02:00
#define ACFRAGMENT PCHAR "/?"
2016-07-25 10:54:17 +02:00
#define ACFRAGMENT_ENCODE PCHAR_ENCODE "/?"
2015-06-26 15:37:47 +02:00
#endif /* URL_CHARACTERS_H */