Use a variable on the stack to not have a temporary in the call
[ACE_TAO.git] / ACE / protocols / ace / INet / HTTP_Header.cpp
blobceb296554a9eb1a114313f0718c3833b8e1bc795
1 #include "ace/INet/HTTP_Header.h"
2 #include "ace/OS_NS_stdlib.h"
3 #include <string>
5 #if !defined (__ACE_INLINE__)
6 #include "ace/INet/HTTP_Header.inl"
7 #endif
10 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
12 namespace ACE
14 namespace HTTP
16 const ACE_CString Header::HTTP_1_0 = "HTTP/1.0";
17 const ACE_CString Header::HTTP_1_1 = "HTTP/1.1";
18 const ACE_CString Header::CHUNKED_TRANSFER_ENCODING = "chunked";
19 const ACE_CString Header::TRANSFER_ENCODING = "Transfer-Encoding";
20 const ACE_CString Header::CONNECTION = "Connection";
21 const ACE_CString Header::CONNECTION_KEEP_ALIVE = "Keep-Alive";
22 const ACE_CString Header::CONNECTION_CLOSE = "Close";
24 Header::Header()
25 : ACE::INet::HeaderBase (),
26 version_ (HTTP_1_0)
30 Header::Header(const ACE_CString& version)
31 : ACE::INet::HeaderBase (),
32 version_ (version)
36 Header::~Header()
43 ACE_END_VERSIONED_NAMESPACE_DECL