Class DefaultContentLengthStrategy

java.lang.Object
org.apache.hc.core5.http.impl.DefaultContentLengthStrategy
All Implemented Interfaces:
ContentLengthStrategy

@Contract(threading=IMMUTABLE) public class DefaultContentLengthStrategy extends Object implements ContentLengthStrategy
The default implementation of the content length strategy. This class will throw ProtocolException if it encounters an unsupported transfer encoding, multiple Content-Length header values or a malformed Content-Length header value.

This class recognizes "chunked" transfer-coding only.

Since:
5.0