Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTPU / http_response.h
blobabb28aa66c4d3fb7458a41f20b2e03d52ffa7208
1 // There are two kinds of HTTP Responses in a proxy.
2 // One is the kind you have to read in from the HTTP server.
3 // The other is the kind you issue to the HTTP client.
5 #ifndef HTTPU_HTTP_RESPONSE_HPP
6 #define HTTPU_HTTP_RESPONSE_HPP
8 #include "ace/Message_Block.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #include "JAWS/Parse_Headers.h"
16 #include "HTTPU/http_export.h"
17 #include "HTTPU/http_base.h"
18 #include "HTTPU/parse_http_response.h"
20 class HTTPU_Export HTTP_Response : public HTTP_Base
22 public:
23 HTTP_Response (void);
24 ~HTTP_Response (void);
26 Parse_HTTP_Response *response_line (void);
27 // Returns the parsed response line.
29 void dump (void);
31 protected:
33 virtual void parse_line (void);
34 virtual int espouse_line (void);
36 private:
37 Parse_HTTP_Response response_;
40 #if defined (ACE_HAS_INLINED_OSCALLS)
41 # if defined (ACE_INLINE)
42 # undef ACE_INLINE
43 # endif /* ACE_INLINE */
44 # define ACE_INLINE inline
45 # include "HTTPU/http_response.inl"
46 # endif /* ACE_HAS_INLINED_OSCALLS */
49 #endif /* !defined (HTTPU_HTTP_RESPONSE_HPP) */