Package com.google.genai.types
Class HttpResponse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.HttpResponse
A wrapper class for the http response.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()
The raw HTTP response body, in JSON format.static HttpResponse.Builder
builder()
Instantiates a builder for HttpResponse.static HttpResponse
Deserializes a JSON string to a HttpResponse object.headers()
Used to retain the processed HTTP headers in the response.abstract HttpResponse.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
HttpResponse
public HttpResponse()
-
-
Method Details
-
headers
Used to retain the processed HTTP headers in the response. -
body
The raw HTTP response body, in JSON format. -
builder
Instantiates a builder for HttpResponse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a HttpResponse object.
-