- contentLength
- the fixed length of the HTTP request body.
Type Reason Java.Lang.IllegalStateException if already connected or another mode already set. Java.Lang.IllegalArgumentException if contentLength is less than zero.
Configures this connection to stream the request body with the known fixed byte count of contentLength.