2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGObjWeb_WOResponse_H__
23 #define __NGObjWeb_WOResponse_H__
25 #import <Foundation/NSString.h>
26 #include <NGObjWeb/WOMessage.h>
27 #include <NGObjWeb/WOActionResults.h>
32 This WOMessage subclass add functionality for HTTP responses, mostly
33 the HTTP status. WOResponse also provides some methods for zipping itself.
39 @interface WOResponse : WOMessage < WOActionResults >
46 - (void)setStatus:(unsigned int)_status;
47 - (unsigned int)status;
51 @interface WOResponse(PrivateMethods)
53 + (WOResponse *)responseWithRequest:(WORequest *)_request;
54 - (id)initWithRequest:(WORequest *)_request;
56 - (void)disableClientCaching;
60 @interface WOResponse(Zipping)
62 - (BOOL)shouldZipResponseToRequest:(WORequest *)_rq;
63 - (NSData *)zipResponse;
67 #endif /* __NGObjWeb_WOResponse_H__ */