|
|
| version 1.2, 2001/03/18 14:45:25 | version 1.35, 2024/11/04 03:53:25 |
|---|---|
| Line 1 | Line 1 |
| /* | /** @file |
| Parser | Parser: @b response parser class. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | |
| Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf) | |
| $Id$ | Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | |
| */ | */ |
| #include "_response.h" | #include "classes.h" |
| #include "pa_vmethod_frame.h" | |
| // global var | #include "pa_request.h" |
| #include "pa_vresponse.h" | |
| VStateless_class *response_base_class; | volatile const char * IDENT_RESPONSE_C="$Id$"; |
| // class | |
| class MResponse: public Methoded { | |
| public: | |
| MResponse(); | |
| public: // Methoded | |
| bool used_directly() { return false; } | |
| }; | |
| // global variable | |
| DECLARE_CLASS_VAR(response, new MResponse); | |
| // methods | // methods |
| // initialize | static void _clear(Request& r, MethodParams&) { |
| GET_SELF(r, VResponse).fields().clear(); | |
| } | |
| // constructor | |
| void initialize_response_base_class(Pool& pool, VStateless_class& vclass) { | MResponse::MResponse(): Methoded("response") { |
| // ^clear[] | |
| add_native_method("clear", Method::CT_STATIC, _clear, 0, 0); | |
| } | } |