http_content_type.h
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
//
// See accompanying file COPYING.TXT file for licensing details.
//
#ifndef CPPCMS_HTTP_CONTENT_TYPE_H
#define CPPCMS_HTTP_CONTENT_TYPE_H
#include <cppcms/defs.h>
#include <booster/shared_ptr.h>
#include <string>
#include <map>
namespace cppcms { namespace http {
class CPPCMS_API content_type {
public:
std::string type() const;
std::string subtype() const;
std::string media_type() const;
std::string charset() const;
std::map<std::string,std::string> parameters() const;
std::string parameter_by_key(std::string const &key) const;
bool parameter_is_set(std::string const &key) const;
content_type(std::string const &ct);
content_type(char const *ct);
content_type(char const *begin,char const *end);
content_type();
content_type(content_type const &);
content_type const &operator=(content_type const &);
~content_type();
private:
struct data;
void parse(char const *b,char const *e);
booster::shared_ptr<data> d;
};
} } //::cppcms::http
#endif
cppcms::http::content_type
Class that represents parsed Content-Type header, this is immutable class. Once it is created its val...
Definition: http_content_type.h:23
booster::shared_ptr< data >