@Immutable public class LaxContentLengthStrategyHC4 extends java.lang.Object implements org.apache.http.entity.ContentLengthStrategy
Content-Length
header values.
This class recognizes "chunked" and "identitiy" transfer-coding only.| Modifier and Type | Field and Description |
|---|---|
static LaxContentLengthStrategyHC4 |
INSTANCE |
| Constructor and Description |
|---|
LaxContentLengthStrategyHC4()
Creates LaxContentLengthStrategy instance.
|
LaxContentLengthStrategyHC4(int implicitLen)
Creates LaxContentLengthStrategy instance with the given length used per default
when content length is not explicitly specified in the message.
|
| Modifier and Type | Method and Description |
|---|---|
long |
determineLength(org.apache.http.HttpMessage message) |
public static final LaxContentLengthStrategyHC4 INSTANCE
public LaxContentLengthStrategyHC4(int implicitLen)
implicitLen - implicit content length.public LaxContentLengthStrategyHC4()
ContentLengthStrategy.IDENTITY
is used per default when content length is not explicitly specified in the message.Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.