Class BodyResponse

java.lang.Object
org.attribyte.api.http.Response
org.attribyte.api.http.BodyResponse

public class BodyResponse extends Response
A response that holds the full response body in-memory.
  • Field Details

    • body

      public final com.google.protobuf.ByteString body
      The (immutable) body.
  • Method Details

    • getBody

      public com.google.protobuf.ByteString getBody()
      Description copied from class: Response
      Gets the response body as an immutable ByteString.
      Overrides:
      getBody in class Response
      Returns:
      The response body, or null if none.