Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTPU / parse_http_request.h
bloba56b0f64e94fc9616cdd19b259072f271f5e2042
1 #ifndef HTTPU_PARSE_HTTP_REQUEST_H
2 #define HTTPU_PARSE_HTTP_REQUEST_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_headers.h"
12 class HTTPU_Export Parse_HTTP_Request : public HTTP_HCodes
14 public:
15 Parse_HTTP_Request (const char *request = 0);
16 ~Parse_HTTP_Request ();
18 void init (const char *request);
20 int method () const;
21 const char *method_str () const;
23 int major_version () const;
24 int minor_version () const;
26 const char *version () const;
28 const char *url () const;
30 enum { HTTPU_OK, NO_MEMORY, BAD_REQUEST, NOT_IMPLEMENTED };
32 int error () const;
33 // 0 -> ok
35 void dump ();
37 private:
38 HTTP_Hdr_Node *method_;
39 int major_version_;
40 int minor_version_;
41 char *version_;
42 char *url_;
43 char *request_;
44 int error_;
47 #if defined (ACE_HAS_INLINED_OSCALLS)
48 # if defined (ACE_INLINE)
49 # undef ACE_INLINE
50 # endif /* ACE_INLINE */
51 # define ACE_INLINE inline
52 # include "HTTPU/parse_http_request.inl"
53 # endif /* ACE_HAS_INLINED_OSCALLS */
55 #endif /* !defined (HTTPU_PARSE_HTTP_REQUEST_H) */