Package 

Interface BodyDecoder


  • 
    public interface BodyDecoder
    
                        

    Decodes HTTP request and response bodies to human–readable texts.

    • Method Summary

      Modifier and Type Method Description
      abstract String decodeRequest(Request request, ByteString body) Returns a text representation of body that will be displayed in Chucker UI transaction, or null if request cannot be handled by this decoder.
      abstract String decodeResponse(Response response, ByteString body) Returns a text representation of body that will be displayed in Chucker UI transaction, or null if response cannot be handled by this decoder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 null if 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 null if 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.