expect Http Body
fun expectHttpBody(method: HttpMethod, contentLength: Long, transferEncoding: CharSequence?, connectionOptions: ConnectionOptions?, contentType: CharSequence?): Boolean(source)
Return
true if request or response with the specified parameters could have a body
Throws
if transferEncoding is present and is not exactly chunked
Return
true if request or response with the specified parameters could have a body
Throws
if the message has more than one Content-Length or Transfer-Encoding header, has both of them, or has a Transfer-Encoding other than chunked