1/*
2 * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/ConnConnectionPNames.java $
3 * $Revision: 576068 $
4 * $Date: 2007-09-16 03:25:01 -0700 (Sun, 16 Sep 2007) $
5 *
6 * ====================================================================
7 *
8 *  Licensed to the Apache Software Foundation (ASF) under one or more
9 *  contributor license agreements.  See the NOTICE file distributed with
10 *  this work for additional information regarding copyright ownership.
11 *  The ASF licenses this file to You under the Apache License, Version 2.0
12 *  (the "License"); you may not use this file except in compliance with
13 *  the License.  You may obtain a copy of the License at
14 *
15 *      http://www.apache.org/licenses/LICENSE-2.0
16 *
17 *  Unless required by applicable law or agreed to in writing, software
18 *  distributed under the License is distributed on an "AS IS" BASIS,
19 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 *  See the License for the specific language governing permissions and
21 *  limitations under the License.
22 * ====================================================================
23 *
24 * This software consists of voluntary contributions made by many
25 * individuals on behalf of the Apache Software Foundation.  For more
26 * information on the Apache Software Foundation, please see
27 * <http://www.apache.org/>.
28 *
29 */
30
31package org.apache.http.conn.params;
32
33
34/**
35 * Parameter names for connections in HttpConn.
36 *
37 * @version $Revision: 576068 $
38 *
39 * @since 4.0
40 */
41public interface ConnConnectionPNames {
42
43
44    /**
45     * Defines the maximum number of ignorable lines before we expect
46     * a HTTP response's status line.
47     * <p>
48     * With HTTP/1.1 persistent connections, the problem arises that
49     * broken scripts could return a wrong Content-Length
50     * (there are more bytes sent than specified).
51     * Unfortunately, in some cases, this cannot be detected after the
52     * bad response, but only before the next one.
53     * So HttpClient must be able to skip those surplus lines this way.
54     * </p>
55     * <p>
56     * This parameter expects a value of type {@link Integer}.
57     * 0 disallows all garbage/empty lines before the status line.
58     * Use {@link java.lang.Integer#MAX_VALUE} for unlimited
59     * (default in lenient mode).
60     * </p>
61     */
62    public static final String MAX_STATUS_LINE_GARBAGE = "http.connection.max-status-line-garbage";
63
64
65}
66