Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTPU / http_request.h
blobba9a705834d07bf9d52410343023798a8e552039
1 // There are two kinds of HTTP Requests in a proxy.
2 // One is the kind you have to read in from the HTTP client.
3 // The other is the kind you issue to the server.
5 #ifndef HTTPU_HTTP_REQUEST_HPP
6 #define HTTPU_HTTP_REQUEST_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"
15 #include "HTTPU/http_export.h"
16 #include "HTTPU/http_base.h"
17 #include "HTTPU/parse_http_request.h"
18 #include "HTTPU/parse_url.h"
20 class HTTPU_Export HTTP_Request : public HTTP_Base
22 public:
23 HTTP_Request ();
24 virtual ~HTTP_Request ();
26 Parse_HTTP_Request *request_line ();
27 // Returns the parsed request line.
29 const Parse_HTTP_Request *request_line () const;
30 // Returns the parsed request line.
32 HTTP_Parse_URL *url ();
33 // Returns the parsed url.
35 void dump ();
37 protected:
38 virtual void parse_line ();
39 virtual int espouse_line ();
40 virtual void set_status (int);
42 private:
43 Parse_HTTP_Request request_;
44 HTTP_Parse_URL url_;
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/http_request.inl"
53 # endif /* ACE_HAS_INLINED_OSCALLS */
56 #endif /* !defined (HTTPU_HTTP_REQUEST_HPP) */