|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-5A9CBB5B-DE6A-42D6-9244-3F151B79BDCD" xml:lang="en"><title>HTTP |
|
13 Receive Buffer Size Property</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>By default, the HTTP Transport Framework uses the default receive buffer |
|
15 size of 6 KB for an HTTP session. The default receive buffer size value can |
|
16 be overridden by the client before the first HTTP transaction is submitted |
|
17 for a particular HTTP session. The default receive buffer size for a particular |
|
18 session can be set using the <codeph>HTTP::ERecvBufferSize</codeph> property. |
|
19 The following example code illustrates how to set the default receive buffer |
|
20 size for an HTTP session: </p> |
|
21 <codeblock id="GUID-CF95E829-8DD6-54A7-8A2D-CACC72420F9A" xml:space="preserve">RHTTPSession mySess; |
|
22 THTTPHdrVal myHdrVal (10240); |
|
23 RHTTPConnectionInfo httpConnInfo = mySess.ConnectionInfo(); |
|
24 httpConnInfo.SetPropertyL (mySess.StringPool().StringF(HTTP::ERecvBufferSize, RHTTPSession::GetTable()), myHdrVal);</codeblock> |
|
25 <p>In this example, the default receive buffer size value is overridden and |
|
26 the receive buffer size is set to 10240 bytes (10 KB).</p> |
|
27 </conbody></concept> |