Main  /  Edit version 2  /  Edit version 3  /   /  Users Area

Difference "What's new in CppCMS 1.2.0" ver. 2 versus ver. 3

Content:

_Note: CppCMS 1.2.0 is stable version of CppCMS 1.1 beta._
# API Improvements
## CppCMS
## CppCMS Library
- Introduced C API for access of CppCMS session for direct library access by other languages/platforms
### Major API Changes in CppCMS:
- `cppcms::http::response`
- Added non-blocking AIO operation API
- Added API to modify output buffer size
- `cppcms::http::request`
- Added an option to install custom content filters for asynchronous applications that would validate input on the fly
- Added an option to modify various security limits for filters on per request basis,
- `cppcms::cache_interface` - added an option to use it outside `cppcms::http::context` scope.
- `cppcms::session_interface`
- added an option to use outside of
`cppcms::http::context` scope to enable external
- added `session_interface_cookie_adapter` class to
simulate cookies operation for non-cookies based
session handling
- added API to retrieve session keys
- Introduced C API for access of CppCMS session for direct library access by other languages/platforms
- `cppcms::applications_pool` - major API changes
- Added an API that allows asynchronous applications to behave as uploaded content filters
- Added `application_specific_pool` to handle generation of applications, mounting and unmounting them
- New API for mounting applications with operation mode flags: asynchronous, synchronous, filtering and more.
- Added different pool management strategies
- Older style of application mounting isn't recommented to use any more, it will be deprecated in future versions
- `cppcms::http::context`
- Added an "official" method to "resubmit" context to a different pool or asynchrouns application
- Added a context-specific storage API to attach generic data to the storage (for example for passing it between applications)
New Major Classes:
### New Major CppCMS Classes:
- `cppcms`
- `session_interface_cookie_adapter` - a bridge to treat any storage as cookies
- `application_specific_pool` - new applications factory
- `cppcms::http`
- `content_limits` - security limits for input data
- `basic_content_filter`, `raw_content_filter`, `multipart_content_filter` - filters to handle uploaded content via POST or PUT methods.
- C API Classes: `cppcms_capi_session_pool`, `cppcms_capi_session`, `cppcms_capi_cookie`;
Minor Changes:
### Minor API Changes in CppCMS:
- `cppcms::http::content_type` - added queries for multipart/form-data and url-encoded content types.
- `cppcms::http::response` - Added `add_header()` function
- `cppcms::http::file` - added API to modify parameters
- `cppcms::http::cookie` - added API to get expiration times
- `cppcms::widgets::base_widget` - added readonly attribute
- `cppcms::url_dispatcher` - extended API to support up to 6 parameters.
- `cppcms::application` - added option to attach unowned `cppcms::http::context`
- `cppcms::view::generator` - added `enumerate()` function
- `cppcms::json`
- Added API to load data from `[char const *,char const *)` range
- Added `to_json` API to convert strings directly
- `cppcms::session_pool` - added an option to create one independently of `cppcms::service` for use in plugins.
## Booster
## Booster API Changes
- `ptime `added operator `+=`/`-=`
- Added `pointer_type` to `callback`
- Added support of `ate` for `booster::nowide::fstream`
### Booster.AIO
- Added `bind` call to `basic_socket` to enable IP binding for both client and server ends.
- `*_buffer` - added `size()` and `bytes_count()` functions
- `stream_socket` - added `bytes_readable()` function
- `basic_io_device` - added `set_non_blocking_if_needed` member function
- `io_service` - additional `post()` options
# Performance Improvements

About

CppCMS is a web development framework for performance demanding applications.

Support This Project

SourceForge.net Logo

Поддержать проект

CppCMS needs You


Navigation

Main Page


Valid CSS | Valid XHTML 1.0