equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CREQUEST_INL__ |
|
17 #define __CREQUEST_INL__ |
|
18 |
|
19 inline CRequest::CRequest(RStringPool& aStringPool) |
|
20 :iStringPool(aStringPool) |
|
21 { |
|
22 } |
|
23 |
|
24 inline const RStringF& CRequest::Method() const |
|
25 { |
|
26 return iMethod; |
|
27 } |
|
28 |
|
29 inline RStringF& CRequest::Method() |
|
30 { |
|
31 return iMethod; |
|
32 } |
|
33 |
|
34 inline CUri8*& CRequest::URI() |
|
35 { |
|
36 return iURI; |
|
37 } |
|
38 |
|
39 inline RRequest CRequest::Handle() |
|
40 { |
|
41 RRequest r; |
|
42 r.iImplementation = this; |
|
43 return r; |
|
44 } |
|
45 |
|
46 inline RStringPool& CRequest::StringPool() |
|
47 { |
|
48 return iStringPool; |
|
49 } |
|
50 |
|
51 inline const RStringPool& CRequest::StringPool() const |
|
52 { |
|
53 return iStringPool; |
|
54 } |
|
55 |
|
56 inline TBool CRequest::IsHTTP10() const |
|
57 { |
|
58 return (((iVersion.iMajor == 1)&&(iVersion.iMinor == 0))?(ETrue):(EFalse)); |
|
59 } |
|
60 |
|
61 inline TVersion& CRequest::Version() |
|
62 { |
|
63 return iVersion; |
|
64 } |
|
65 |
|
66 inline void CRequest::Reset() |
|
67 { |
|
68 Handle().GetHeaderCollection().RemoveAllFields(); |
|
69 } |
|
70 |
|
71 #endif // __CREQUEST_INL__ |