Class BodyContent

java.lang.Object
io.avaje.http.client.BodyContent

public class BodyContent extends Object
Content of request or response body used for adapting to beans.

This is not used for streaming content.

  • Field Details

  • Constructor Details

    • BodyContent

      public BodyContent(String contentType, byte[] content)
      Create with content type and content.
  • Method Details

    • asJson

      public static BodyContent asJson(byte[] content)
      Create and return as JSON body content given raw content.
    • contentType

      public String contentType()
      Return the content type.
    • content

      public byte[] content()
      Return the raw content.