-
public interface BodyDecoderDecodes HTTP request and response bodies to human–readable texts.
-
-
Method Summary
Modifier and Type Method Description abstract StringdecodeRequest(Request request, ByteString body)Returns a text representation of body that will be displayed in Chucker UI transaction, or nullif request cannot be handled by this decoder.abstract StringdecodeResponse(Response response, ByteString body)Returns a text representation of body that will be displayed in Chucker UI transaction, or nullif response cannot be handled by this decoder.-
-
Method Detail
-
decodeRequest
abstract String decodeRequest(Request request, ByteString body)
Returns a text representation of body that will be displayed in Chucker UI transaction, or
nullif request cannot be handled by this decoder. Body is no longer than max content length and is guaranteed to be uncompressed even if request has gzip or br header.
-
decodeResponse
abstract String decodeResponse(Response response, ByteString body)
Returns a text representation of body that will be displayed in Chucker UI transaction, or
nullif response cannot be handled by this decoder. Body is no longer than max content length and is guaranteed to be uncompressed even if response has gzip or br header.
-
-
-
-