Creates a new instance of this type.
Instances of this type decode request
's body based on its content-type.
See HTTPCodecRepository for more information about how data is decoded.
Decoded data is cached the after it is decoded.
Source
HTTPRequestBody(HttpRequest request) : this._request = request, super(request) { _hasContent = (request.headers.contentLength ?? 0) > 0 || request.headers.chunkedTransferEncoding; }