Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef ACE_HTTP_HEADER_H
00010 #define ACE_HTTP_HEADER_H
00011
00012 #include "ace/pre.h"
00013
00014 #include "ace/config-all.h"
00015
00016 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00017 # pragma once
00018 #endif
00019
00020 #include "ace/INet/INet_Export.h"
00021 #include "ace/INet/HeaderBase.h"
00022
00023 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00024
00025 namespace ACE
00026 {
00027 namespace HTTP
00028 {
00029
00030
00031
00032
00033
00034
00035 class ACE_INET_Export Header
00036 : public ACE::INet::HeaderBase
00037 {
00038 public:
00039
00040 Header();
00041
00042
00043 Header(const ACE_CString& version);
00044
00045
00046 virtual ~Header();
00047
00048
00049 void set_version(const ACE_CString& version);
00050
00051
00052 const ACE_CString& get_version() const;
00053
00054
00055
00056
00057 void set_chunked_transfer_encoding(bool flag);
00058
00059
00060
00061 bool has_chunked_transfer_encoding() const;
00062
00063
00064
00065
00066 void set_keep_alive(bool keep_alive);
00067
00068
00069
00070
00071
00072 bool has_keep_alive() const;
00073
00074 static const ACE_CString HTTP_1_0;
00075 static const ACE_CString HTTP_1_1;
00076
00077 static const ACE_CString CHUNKED_TRANSFER_ENCODING;
00078
00079 static const ACE_CString TRANSFER_ENCODING;
00080 static const ACE_CString CONNECTION;
00081
00082 static const ACE_CString CONNECTION_KEEP_ALIVE;
00083 static const ACE_CString CONNECTION_CLOSE;
00084
00085 private:
00086 ACE_CString version_;
00087 };
00088 }
00089 }
00090
00091 ACE_END_VERSIONED_NAMESPACE_DECL
00092
00093 #if defined (__ACE_INLINE__)
00094 #include "ace/INet/HTTP_Header.inl"
00095 #endif
00096
00097 #include "ace/post.h"
00098 #endif