8 #ifndef CPPCMS_HTTP_CONTENT_FILTER_H 9 #define CPPCMS_HTTP_CONTENT_FILTER_H 11 #include <cppcms/defs.h> 12 #include <cppcms/cppcms_error.h> 13 #include <booster/hold_ptr.h> 14 #include <booster/noncopyable.h> 20 struct cached_settings;
67 long long content_length_limit()
const;
74 void content_length_limit(
long long size);
82 long long multipart_form_data_limit()
const;
89 void multipart_form_data_limit(
long long size);
94 size_t file_in_memory_limit()
const;
98 void file_in_memory_limit(
size_t size);
103 std::string uploads_path()
const;
107 void uploads_path(std::string
const &path);
111 long long content_length_limit_;
112 size_t file_in_memory_limit_;
113 long long multipart_form_data_limit_;
114 std::string uploads_path_;
129 void operator=(basic_content_filter
const &);
131 basic_content_filter();
132 virtual ~basic_content_filter();
139 virtual void on_end_of_content();
144 virtual void on_error();
166 virtual void on_data_chunk(
void const *data,
size_t data_size) = 0;
195 virtual void on_new_file(
http::file &input_file);
205 virtual void on_upload_progress(
http::file &input_file);
215 virtual void on_data_ready(
http::file &input_file);
Definition: http_content_filter.h:31
Exception thrown by CppCMS framework.
Definition: cppcms_error.h:22
This is the namespace where all CppCMS functionality is placed.
Definition: application.h:19
Definition: http_content_filter.h:127
Definition: http_content_filter.h:157
This class holds a uploaded file, it is generally fetched via widgets::file or via http::request::fil...
Definition: http_file.h:38
Definition: http_content_filter.h:182
This class makes impossible to copy any class derived from this one.
Definition: noncopyable.h:15
Definition: http_content_filter.h:52
This class represents all information related to the HTTP/CGI request.
Definition: http_request.h:37