' REST/HTTP protocol constants independent of a transport DLL.
#IF NOT %DEF(PBX_REST_HTTP_PBI)
#DEFINE PBX_REST_HTTP_PBI

CONST HTTP_METHOD_GET = "GET"
CONST HTTP_METHOD_HEAD = "HEAD"
CONST HTTP_METHOD_POST = "POST"
CONST HTTP_METHOD_PUT = "PUT"
CONST HTTP_METHOD_PATCH = "PATCH"
CONST HTTP_METHOD_DELETE = "DELETE"
CONST HTTP_METHOD_OPTIONS = "OPTIONS"
CONST HTTP_METHOD_TRACE = "TRACE"
CONST HTTP_METHOD_CONNECT = "CONNECT"

CONST HTTP_HEADER_ACCEPT = "Accept"
CONST HTTP_HEADER_ACCEPT_ENCODING = "Accept-Encoding"
CONST HTTP_HEADER_AUTHORIZATION = "Authorization"
CONST HTTP_HEADER_CACHE_CONTROL = "Cache-Control"
CONST HTTP_HEADER_CONNECTION = "Connection"
CONST HTTP_HEADER_CONTENT_LENGTH = "Content-Length"
CONST HTTP_HEADER_CONTENT_TYPE = "Content-Type"
CONST HTTP_HEADER_DATE = "Date"
CONST HTTP_HEADER_ETAG = "ETag"
CONST HTTP_HEADER_HOST = "Host"
CONST HTTP_HEADER_LOCATION = "Location"
CONST HTTP_HEADER_USER_AGENT = "User-Agent"
CONST HTTP_HEADER_TRANSFER_ENCODING = "Transfer-Encoding"
CONST HTTP_HEADER_WWW_AUTHENTICATE = "WWW-Authenticate"
CONST HTTP_HEADER_X_REQUEST_ID = "X-Request-Id"

CONST HTTP_STATUS_CONTINUE = 100
CONST HTTP_STATUS_SWITCHING_PROTOCOLS = 101
CONST HTTP_STATUS_OK = 200
CONST HTTP_STATUS_CREATED = 201
CONST HTTP_STATUS_ACCEPTED = 202
CONST HTTP_STATUS_NO_CONTENT = 204
CONST HTTP_STATUS_MOVED_PERMANENTLY = 301
CONST HTTP_STATUS_FOUND = 302
CONST HTTP_STATUS_SEE_OTHER = 303
CONST HTTP_STATUS_NOT_MODIFIED = 304
CONST HTTP_STATUS_TEMPORARY_REDIRECT = 307
CONST HTTP_STATUS_PERMANENT_REDIRECT = 308
CONST HTTP_STATUS_BAD_REQUEST = 400
CONST HTTP_STATUS_UNAUTHORIZED = 401
CONST HTTP_STATUS_FORBIDDEN = 403
CONST HTTP_STATUS_NOT_FOUND = 404
CONST HTTP_STATUS_METHOD_NOT_ALLOWED = 405
CONST HTTP_STATUS_CONFLICT = 409
CONST HTTP_STATUS_TOO_MANY_REQUESTS = 429
CONST HTTP_STATUS_INTERNAL_SERVER_ERROR = 500
CONST HTTP_STATUS_NOT_IMPLEMENTED = 501
CONST HTTP_STATUS_BAD_GATEWAY = 502
CONST HTTP_STATUS_SERVICE_UNAVAILABLE = 503
CONST HTTP_STATUS_GATEWAY_TIMEOUT = 504

CONST HTTP_MIME_JSON = "application/json"
CONST HTTP_MIME_FORM_URLENCODED = "application/x-www-form-urlencoded"
CONST HTTP_MIME_MULTIPART_FORM_DATA = "multipart/form-data"
CONST HTTP_MIME_TEXT_PLAIN = "text/plain"
CONST HTTP_MIME_TEXT_HTML = "text/html"
CONST HTTP_MIME_OCTET_STREAM = "application/octet-stream"

#ENDIF
