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)
8 #endif /* ACE_LACKS_PRAGMA_ONCE */
10 #include "HTTPU/http_headers.h"
12 class HTTPU_Export Parse_HTTP_Request
: public HTTP_HCodes
15 Parse_HTTP_Request (const char *request
= 0);
16 ~Parse_HTTP_Request ();
18 void init (const char *request
);
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
};
38 HTTP_Hdr_Node
*method_
;
47 #if defined (ACE_HAS_INLINED_OSCALLS)
48 # if defined (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) */