Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTPU / parse_http_response.h
blob5a85453dc52b1a19032c26f3b2b83f8b38a9d593
1 #ifndef HTTPU_PARSE_HTTP_RESPONSE_H
2 #define HTTPU_PARSE_HTTP_RESPONSE_H
4 #include "ace/config-all.h"
6 #if !defined (ACE_LACKS_PRAGMA_ONCE)
7 # pragma once
8 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 #include "HTTPU/http_export.h"
12 class HTTPU_Export Parse_HTTP_Response
14 public:
15 Parse_HTTP_Response (const char *response = 0);
16 ~Parse_HTTP_Response ();
18 void init (const char *response);
20 int code () const;
21 const char *code_str () const;
23 int major_version () const;
24 int minor_version () const;
26 const char *version () const;
28 enum { HTTPU_OK, NO_MEMORY, BAD_RESPONSE };
30 int error () const;
31 // 0 -> ok
33 private:
34 int code_;
35 char *code_str_;
36 int major_version_;
37 int minor_version_;
38 char *version_;
39 char *response_;
40 int error_;
43 #if defined (ACE_HAS_INLINED_OSCALLS)
44 # if defined (ACE_INLINE)
45 # undef ACE_INLINE
46 # endif /* ACE_INLINE */
47 # define ACE_INLINE inline
48 # include "HTTPU/parse_http_response.inl"
49 # endif /* ACE_HAS_INLINED_OSCALLS */
52 #endif /* !defined (HTTPU_PARSE_HTTP_RESPONSE_H) */