113 lines
4.7 KiB
Hare
113 lines
4.7 KiB
Hare
// HTTP "GET" method.
|
|
export def GET: str = "GET";
|
|
// HTTP "HEAD" method.
|
|
export def HEAD: str = "HEAD";
|
|
// HTTP "POST" method.
|
|
export def POST: str = "POST";
|
|
// HTTP "PUT" method.
|
|
export def PUT: str = "PUT";
|
|
// HTTP "DELETE" method.
|
|
export def DELETE: str = "DELETE";
|
|
// HTTP "OPTIONS" method.
|
|
export def OPTIONS: str = "OPTIONS";
|
|
// HTTP "PATCH" method.
|
|
export def PATCH: str = "PATCH";
|
|
// HTTP "CONNECT" method.
|
|
export def CONNECT: str = "CONNECT";
|
|
|
|
// HTTP "Continue" response status (100).
|
|
export def STATUS_CONTINUE: uint = 100;
|
|
// HTTP "Switching Protocols" response status (101).
|
|
export def STATUS_SWITCHING_PROTOCOLS: uint = 101;
|
|
|
|
// HTTP "OK" response status (200).
|
|
export def STATUS_OK: uint = 200;
|
|
// HTTP "Created" response status (201).
|
|
export def STATUS_CREATED: uint = 201;
|
|
// HTTP "Accepted" response status (202).
|
|
export def STATUS_ACCEPTED: uint = 202;
|
|
// HTTP "Non-authoritative Info" response status (203).
|
|
export def STATUS_NONAUTHORITATIVE_INFO: uint = 203;
|
|
// HTTP "No Content" response status (204).
|
|
export def STATUS_NO_CONTENT: uint = 204;
|
|
// HTTP "Reset Content" response status (205).
|
|
export def STATUS_RESET_CONTENT: uint = 205;
|
|
// HTTP "Partial Content" response status (206).
|
|
export def STATUS_PARTIAL_CONTENT: uint = 206;
|
|
|
|
// HTTP "Multiple Choices" response status (300).
|
|
export def STATUS_MULTIPLE_CHOICES: uint = 300;
|
|
// HTTP "Moved Permanently" response status (301).
|
|
export def STATUS_MOVED_PERMANENTLY: uint = 301;
|
|
// HTTP "Found" response status (302).
|
|
export def STATUS_FOUND: uint = 302;
|
|
// HTTP "See Other" response status (303).
|
|
export def STATUS_SEE_OTHER: uint = 303;
|
|
// HTTP "Not Modified" response status (304).
|
|
export def STATUS_NOT_MODIFIED: uint = 304;
|
|
// HTTP "Use Proxy" response status (305).
|
|
export def STATUS_USE_PROXY: uint = 305;
|
|
|
|
// HTTP "Temporary Redirect" response status (307).
|
|
export def STATUS_TEMPORARY_REDIRECT: uint = 307;
|
|
// HTTP "Permanent Redirect" response status (308).
|
|
export def STATUS_PERMANENT_REDIRECT: uint = 308;
|
|
|
|
// HTTP "Bad Request" response status (400).
|
|
export def STATUS_BAD_REQUEST: uint = 400;
|
|
// HTTP "Unauthorized" response status (401).
|
|
export def STATUS_UNAUTHORIZED: uint = 401;
|
|
// HTTP "Payment Required" response status (402).
|
|
export def STATUS_PAYMENT_REQUIRED: uint = 402;
|
|
// HTTP "Forbidden" response status (403).
|
|
export def STATUS_FORBIDDEN: uint = 403;
|
|
// HTTP "Not Found" response status (404).
|
|
export def STATUS_NOT_FOUND: uint = 404;
|
|
// HTTP "Method Not Allowed" response status (405).
|
|
export def STATUS_METHOD_NOT_ALLOWED: uint = 405;
|
|
// HTTP "Not Acceptable" response status (406).
|
|
export def STATUS_NOT_ACCEPTABLE: uint = 406;
|
|
// HTTP "Proxy Authentication Required" response status (407).
|
|
export def STATUS_PROXY_AUTH_REQUIRED: uint = 407;
|
|
// HTTP "Request Timeout" response status (408).
|
|
export def STATUS_REQUEST_TIMEOUT: uint = 408;
|
|
// HTTP "Conflict" response status (409).
|
|
export def STATUS_CONFLICT: uint = 409;
|
|
// HTTP "Gone" response status (410).
|
|
export def STATUS_GONE: uint = 410;
|
|
// HTTP "Length Required" response status (411).
|
|
export def STATUS_LENGTH_REQUIRED: uint = 411;
|
|
// HTTP "Precondition Failed" response status (412).
|
|
export def STATUS_PRECONDITION_FAILED: uint = 412;
|
|
// HTTP "Request Entity Too Large" response status (413).
|
|
export def STATUS_REQUEST_ENTITY_TOO_LARGE: uint = 413;
|
|
// HTTP "Request URI Too Long" response status (414).
|
|
export def STATUS_REQUEST_URI_TOO_LONG: uint = 414;
|
|
// HTTP "Unsupported Media Type" response status (415).
|
|
export def STATUS_UNSUPPORTED_MEDIA_TYPE: uint = 415;
|
|
// HTTP "Requested Range Not Satisfiable" response status (416).
|
|
export def STATUS_REQUESTED_RANGE_NOT_SATISFIABLE: uint = 416;
|
|
// HTTP "Expectation Failed" response status (417).
|
|
export def STATUS_EXPECTATION_FAILED: uint = 417;
|
|
// HTTP "I'm a Teapot" response status (418).
|
|
export def STATUS_TEAPOT: uint = 418;
|
|
// HTTP "Misdirected Request" response status (421).
|
|
export def STATUS_MISDIRECTED_REQUEST: uint = 421;
|
|
// HTTP "Unprocessable Entity" response status (422).
|
|
export def STATUS_UNPROCESSABLE_ENTITY: uint = 422;
|
|
// HTTP "Upgrade Required" response status (426).
|
|
export def STATUS_UPGRADE_REQUIRED: uint = 426;
|
|
|
|
// HTTP "Internal Server Error" response status (500).
|
|
export def STATUS_INTERNAL_SERVER_ERROR: uint = 500;
|
|
// HTTP "Not Implemented" response status (501).
|
|
export def STATUS_NOT_IMPLEMENTED: uint = 501;
|
|
// HTTP "Bad Gateway" response status (502).
|
|
export def STATUS_BAD_GATEWAY: uint = 502;
|
|
// HTTP "Service Unavailable" response status (503).
|
|
export def STATUS_SERVICE_UNAVAILABLE: uint = 503;
|
|
// HTTP "Gateway Timeout" response status (504).
|
|
export def STATUS_GATEWAY_TIMEOUT: uint = 504;
|
|
// HTTP "HTTP Version Not Supported" response status (505).
|
|
export def STATUS_HTTP_VERSION_NOT_SUPPORTED: uint = 505;
|