content_type.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* 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/>.
*
* Authored by: Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef CORE_NET_HTTP_CONTENT_TYPE_H_
#define CORE_NET_HTTP_CONTENT_TYPE_H_
#include <core/net/visibility.h>
namespace core
{
namespace net
{
namespace http
{
struct CORE_NET_DLL_PUBLIC ContentType
{
ContentType() = delete;
constexpr static const char* json
{
"application/json"
};
constexpr static const char* xml
{
"application/xml"
};
constexpr static const char* x_www_form_urlencoded
{
"application/x-www-form-urlencoded"
};
};
}
}
}
#endif // CORE_NET_HTTP_CONTENT_TYPE_H_
core::net::http
Definition client.h:39
core::net
Definition error.h:28
core
Definition location.h:24
core::net::http::ContentType::xml
static constexpr const char * xml
Definition content_type.h:42
core::net::http::ContentType::x_www_form_urlencoded
static constexpr const char * x_www_form_urlencoded
Definition content_type.h:47
core::net::http::ContentType::json
static constexpr const char * json
Definition content_type.h:37
core::net::http::ContentType::ContentType
ContentType()=delete
visibility.h
CORE_NET_DLL_PUBLIC
#define CORE_NET_DLL_PUBLIC
Definition visibility.h:25