001/*
002 * ====================================================================
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 * ====================================================================
020 *
021 * This software consists of voluntary contributions made by many
022 * individuals on behalf of the Apache Software Foundation.  For more
023 * information on the Apache Software Foundation, please see
024 * <http://www.apache.org/>.
025 *
026 */
027package org.apache.http.conn.params;
028
029/**
030 * Parameter names for HTTP client connections.
031 *
032 * @since 4.0
033 *
034 * @deprecated (4.1) use custom {@link
035 *   org.apache.http.impl.conn.DefaultHttpResponseParser} implementation.
036 */
037@Deprecated
038public interface ConnConnectionPNames {
039
040    /**
041     * Defines the maximum number of ignorable lines before we expect
042     * a HTTP response's status line.
043     * <p>
044     * With HTTP/1.1 persistent connections, the problem arises that
045     * broken scripts could return a wrong Content-Length
046     * (there are more bytes sent than specified).
047     * Unfortunately, in some cases, this cannot be detected after the
048     * bad response, but only before the next one.
049     * So HttpClient must be able to skip those surplus lines this way.
050     * </p>
051     * <p>
052     * This parameter expects a value of type {@link Integer}.
053     * 0 disallows all garbage/empty lines before the status line.
054     * Use {@link java.lang.Integer#MAX_VALUE} for unlimited number.
055     * </p>
056     *
057     * @deprecated (4.1) Use custom {@link
058     *   org.apache.http.impl.conn.DefaultHttpResponseParser} implementation
059     */
060    @Deprecated
061    public static final String MAX_STATUS_LINE_GARBAGE = "http.connection.max-status-line-garbage";
062
063
064}