merged AI doc, some new pages
This commit is contained in:
@@ -1,9 +1,41 @@
|
||||
//! \~\ingroup HTTP
|
||||
//! \~\file pihttpconstants.h
|
||||
//! \brief HTTP constants and enumerations
|
||||
//! \~english Definitions for HTTP methods, status codes and header names
|
||||
//! \~russian Определения HTTP методов, кодов состояния и имен заголовков
|
||||
//! \details
|
||||
//! \~english Provides enum classes for HTTP methods and status codes, and a namespace with HTTP header name constants
|
||||
//! \~russian Предоставляет классы перечислений для HTTP методов и кодов состояния, а также пространство имён с константами имён HTTP
|
||||
//! заголовков.
|
||||
/*
|
||||
PIP - Platform Independent Primitives
|
||||
HTTP constants and enumerations
|
||||
Ivan Pelipenko peri4ko@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef pihttpconstants_h
|
||||
#define pihttpconstants_h
|
||||
|
||||
|
||||
//! \~english Namespace with shared HTTP constants and vocabulary.
|
||||
//! \~russian Пространство имен с общими HTTP-константами и базовой терминологией.
|
||||
namespace PIHTTP {
|
||||
|
||||
//! \~english HTTP request method.
|
||||
//! \~russian HTTP-метод запроса.
|
||||
enum class Method {
|
||||
Unknown,
|
||||
Get,
|
||||
@@ -14,9 +46,11 @@ enum class Method {
|
||||
Connect,
|
||||
Options,
|
||||
Trace,
|
||||
Patch
|
||||
Patch,
|
||||
};
|
||||
|
||||
//! \~english HTTP status code.
|
||||
//! \~russian HTTP-код статуса.
|
||||
enum class Code {
|
||||
Unknown = -1,
|
||||
Continue = 100,
|
||||
@@ -90,7 +124,14 @@ enum class Code {
|
||||
NetworkAuthenticationRequired = 511,
|
||||
};
|
||||
|
||||
//! \~english Namespace with shared HTTP header field name literals.
|
||||
//! \~russian Пространство имен с общими строковыми литералами имен HTTP-заголовков.
|
||||
//!
|
||||
//! \~english Constant names follow the header field names used on the wire.
|
||||
//! \~russian Имена констант повторяют имена полей заголовков, используемые в протоколе.
|
||||
namespace Header {
|
||||
//! \~english Common request and response header fields.
|
||||
//! \~russian Общие поля заголовков запросов и ответов.
|
||||
constexpr static char Accept[] = "Accept";
|
||||
constexpr static char AcceptCharset[] = "Accept-Charset";
|
||||
constexpr static char AcceptEncoding[] = "Accept-Encoding";
|
||||
@@ -140,7 +181,11 @@ constexpr static char UserAgent[] = "User-Agent";
|
||||
constexpr static char Vary[] = "Vary";
|
||||
constexpr static char Via[] = "Via";
|
||||
constexpr static char WWWAuthenticate[] = "WWW-Authenticate";
|
||||
//! \~english Special wildcard token used by some HTTP fields.
|
||||
//! \~russian Специальный подстановочный токен, используемый некоторыми HTTP-полями.
|
||||
constexpr static char Asterisk[] = "*";
|
||||
//! \~english Extended, CORS, security and protocol-specific header fields.
|
||||
//! \~russian Расширенные, CORS-, security- и protocol-specific поля заголовков.
|
||||
constexpr static char AIM[] = "A-IM";
|
||||
constexpr static char AcceptAdditions[] = "Accept-Additions";
|
||||
constexpr static char AcceptCH[] = "Accept-CH";
|
||||
|
||||
Reference in New Issue
Block a user