diff -r 294e084f1263 -r 21f2e01fdd6a doc/book/en/development/devweb/request.rst --- a/doc/book/en/development/devweb/request.rst Wed Feb 03 14:46:32 2010 +0100 +++ b/doc/book/en/development/devweb/request.rst Wed Feb 03 18:44:24 2010 +0100 @@ -3,10 +3,10 @@ The `Request` class (`cubicweb.web`) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -A request instance is created when an HTTP request is sent to the web server. +A._cwuest instance is created when an HTTP._cwuest is sent to the web server. It contains informations such as form parameters, user authenticated, etc. -**Globally, a request represents a user query, either through HTTP or not +**Globally, a._cwuest represents a user query, either through HTTP or not (we also talk about RQL queries on the server side for example).** An instance of `Request` has the following attributes: @@ -36,21 +36,21 @@ * `remove_cookie(cookie, key)`, forces a value to expire :URL handling: - * `url()`, returns the full URL of the HTTP request + * `url()`, returns the full URL of the HTTP._cwuest * `base_url()`, returns the root URL of the web application - * `relative_path()`, returns the relative path of the request + * `relative_path()`, returns the relative path of the._cwuest :And more...: * `set_content_type(content_type, filename=None)`, adds the header HTTP 'Content-Type' * `get_header(header)`, returns the value associated to an arbitrary header - of the HTTP request + of the HTTP._cwuest * `set_header(header, value)`, adds an arbitrary header in the response * `cursor()` returns a RQL cursor on the session * `execute(*args, **kwargs)`, shortcut to ``.cursor().execute()`` * `property_value(key)`, properties management (`CWProperty`) * dictionary `data` to store data to share informations between components - *while a request is executed* + *while a._cwuest is executed* Please note that this class is abstract and that a concrete implementation will be provided by the *frontend* web used (in particular *twisted* as of