Class SuccessfulHttpResponse

java.lang.Object
dev.langchain4j.http.client.SuccessfulHttpResponse

public class SuccessfulHttpResponse extends Object
  • Constructor Details

  • Method Details

    • statusCode

      public int statusCode()
    • headers

      public Map<String, List<String>> headers()
    • contentType

      public String contentType()
      Returns:
      the value of the Content-Type response header (case-insensitive), or null if absent.
    • body

      public String body()
    • bodyBytes

      public byte[] bodyBytes()
    • builder

      public static SuccessfulHttpResponse.Builder builder()