java.lang.Object
com.alibaba.dashscope.applications.agentstudio.protocol.NetworkResponse

public class NetworkResponse extends Object
Raw network response delivered to result parsers.
  • Method Details

    • builder

      public static NetworkResponse.NetworkResponseBuilder builder()
    • getHeaders

      public Map<String,List<String>> getHeaders()
      The response headers.
    • getMessage

      public String getMessage()
      The String type response message.
    • getEvent

      public String getEvent()
      The event, used in assistant
    • getBinary

      public ByteBuffer getBinary()
      The binary type response.
    • getHttpStatusCode

      public Integer getHttpStatusCode()
      The HTTP status code
    • setHeaders

      public void setHeaders(Map<String,List<String>> headers)
      The response headers.
    • setMessage

      public void setMessage(String message)
      The String type response message.
    • setEvent

      public void setEvent(String event)
      The event, used in assistant
    • setBinary

      public void setBinary(ByteBuffer binary)
      The binary type response.
    • setHttpStatusCode

      public void setHttpStatusCode(Integer httpStatusCode)
      The HTTP status code
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object