Changeset 46058

Timestamp:
Jun 2, 2008, 9:54:00 PM (14 years ago)
Author:
Darren Garvey
Message:

Merged revisions 43980-46057 via svnmerge from
https://svn.boost.org/svn/boost/sandbox/SOC/2007/cgi/trunk

........

r44571 | drrngrvy | 2008-04-19 14:05:37 +0100 (Sat, 19 Apr 2008) | 1 line


Factoring form_parser body into an ipp file.

........

r44573 | drrngrvy | 2008-04-19 14:23:03 +0100 (Sat, 19 Apr 2008) | 9 lines


  • Added case-insensitive name type (typedef for std::basic_string<> using a custom traits class).
  • Modified cgi::map to use cgi::name as key.
  • Also modified files to include common/map.hpp instead of map.hpp.
  • Changed code because a std::string isn't automatically convertible to cgi::name
  • Fixed it so multiple cookies are parsed correctly.
  • Plus, other smallish fixes (cleanup / updating Boost.Thread compatibility).

........

r44574 | drrngrvy | 2008-04-19 14:25:08 +0100 (Sat, 19 Apr 2008) | 1 line


Small fixes to examples.

........

r44576 | drrngrvy | 2008-04-19 14:32:06 +0100 (Sat, 19 Apr 2008) | 1 line


Add a test which uses wget to check the output of the *cgi_hello_world examples through a server. It's not used by default, but has the BBv2 id of wget_test.

........

r44577 | drrngrvy | 2008-04-19 14:34:48 +0100 (Sat, 19 Apr 2008) | 1 line


Added basic tests for cgi::name and cgi::map and another for a cgi::request.

........

r44578 | drrngrvy | 2008-04-19 14:40:56 +0100 (Sat, 19 Apr 2008) | 1 line


Added simple test for acgi::request.

........

r44879 | drrngrvy | 2008-04-29 13:22:22 +0100 (Tue, 29 Apr 2008) | 1 line


Fix ichar_traits<>::compare(). Minor optimisations to ichar_traits<>::find() and save_environment().

........

r44880 | drrngrvy | 2008-04-29 13:23:50 +0100 (Tue, 29 Apr 2008) | 1 line


Extracting out cgi/acgi test commonality. Checking name(bar) < name(foo) in name_test too.

........

r44898 | drrngrvy | 2008-04-29 22:08:35 +0100 (Tue, 29 Apr 2008) | 5 lines


  • Added basic_request<>::id() member function.
  • Changed basic_request<>::operator[] so that it decides at compile-time rather than runtime what data map is being accessed.
  • Added additional typedefs env_map, get_map, post_map, cookie_map, form_map corresponding to the dataset they obviously refer to - for now they are just typedefs to cgi::common::map, but eventually they may change - only to make code safer (eg. protect the user against XSS vulnerabilities).

........

r44899 | drrngrvy | 2008-04-29 23:24:00 +0100 (Tue, 29 Apr 2008) | 1 line


Moved a couple of common bits from cgi_service_impl_base and fcgi_request_service into common::request_base<>.

........

r44908 | drrngrvy | 2008-04-30 03:31:09 +0100 (Wed, 30 Apr 2008) | 1 line


Refactoring/housekeeping. Lots of common stuff has moved into common::request_base<> (this *isn't* the same as ::cgi::request_base - an old class that will be removed/replaced).

........

r44909 | drrngrvy | 2008-04-30 03:31:32 +0100 (Wed, 30 Apr 2008) | 1 line


Fix examples because of an interface change.

........

r45554 | drrngrvy | 2008-05-19 20:03:57 +0100 (Mon, 19 May 2008) | 1 line


Made response, cookie and header parameterised on a char type.

........

r45555 | drrngrvy | 2008-05-19 20:06:45 +0100 (Mon, 19 May 2008) | 1 line


Fix name.hpp

........

r45556 | drrngrvy | 2008-05-19 20:17:04 +0100 (Mon, 19 May 2008) | 10 lines


Breaking changes: Accessing request data should only be done using basic_request<>::operator[] now; member functions like basic_request<>::GET() are gone now. Examples have been updated.
Also:

  • Internally, data maps are accessed using eg. common::get_vars(impl.var_) where impl.var_ is the Boost.Fusion map of all the request types.
  • Added "_data"-less alternatives to get_data, post_data, etc, so you can do eg. assert( request[get]Hello == request[get_data]hello); note: case insensitive
  • Other minor cleanups/refactoring.

........

r45557 | drrngrvy | 2008-05-19 20:21:20 +0100 (Mon, 19 May 2008) | 1 line


Updating tests and examples.

........

r45558 | drrngrvy | 2008-05-19 20:25:17 +0100 (Mon, 19 May 2008) | 1 line


Updated project-root.jam

........

r45579 | drrngrvy | 2008-05-20 17:08:38 +0100 (Tue, 20 May 2008) | 1 line


Refactoring; lots of things moved - boost/cgi/ -> boost/cgi/common/; lots more cleanups that are long overdue.

........

r45581 | drrngrvy | 2008-05-20 17:10:37 +0100 (Tue, 20 May 2008) | 1 line


Missing file.

........

r45582 | drrngrvy | 2008-05-20 17:14:12 +0100 (Tue, 20 May 2008) | 1 line


Removing files properly...

........

r45583 | drrngrvy | 2008-05-20 17:23:37 +0100 (Tue, 20 May 2008) | 1 line


Fixing operator<< overload for name.hpp

........

r45584 | drrngrvy | 2008-05-20 17:30:05 +0100 (Tue, 20 May 2008) | 1 line


Missing include in fcgi/client.hpp

........

r45605 | drrngrvy | 2008-05-21 13:25:47 +0100 (Wed, 21 May 2008) | 1 line


More refactorings. Plus a couple of minor bug fixes (like multiple-definition of things in url_decode.hpp

........

r45610 | drrngrvy | 2008-05-21 17:06:46 +0100 (Wed, 21 May 2008) | 4 lines


  • Adding ability to compile a library by passing --build-cgi on the bjam command line (seems to work).
  • Fixing examples and tests as per refactoring.

........

r45611 | drrngrvy | 2008-05-21 17:16:18 +0100 (Wed, 21 May 2008) | 4 lines


  • More refactoring: Moving things imported from Boost.Asio into the import folder.
  • Adding/fixing a couple of hooks for the *option* of building a library out of the headers.

........

r45612 | drrngrvy | 2008-05-21 17:25:27 +0100 (Wed, 21 May 2008) | 1 line


1of2 - fixing corrupted repository.

........

r45613 | drrngrvy | 2008-05-21 17:43:19 +0100 (Wed, 21 May 2008) | 1 line


Removing typo-file.

........

r45614 | drrngrvy | 2008-05-21 17:46:33 +0100 (Wed, 21 May 2008) | 1 line


2of2: fixing corrupted repository.

........

r45615 | drrngrvy | 2008-05-21 17:48:54 +0100 (Wed, 21 May 2008) | 1 line


Fixes related to refactoring.

........

r45628 | drrngrvy | 2008-05-21 22:40:58 +0100 (Wed, 21 May 2008) | 1 line


Missing file.

........

r45655 | drrngrvy | 2008-05-22 15:19:21 +0100 (Thu, 22 May 2008) | 1 line


End of spring cleaning (hopefully).

........

r45656 | drrngrvy | 2008-05-22 15:19:43 +0100 (Thu, 22 May 2008) | 1 line


End of spring cleaning (hopefully).

........

(No files)

Note: See TracChangeset for help on using the changeset viewer.