Table of Contents

Class StreamingApiResponse

Namespace
Google.GenAI
Assembly
Google.GenAI.dll
public class StreamingApiResponse : ApiResponse, IDisposable, IAsyncDisposable
Inheritance
StreamingApiResponse
Implements
Inherited Members

Constructors

StreamingApiResponse(string, HttpResponseMessage)

public StreamingApiResponse(string jsonContent, HttpResponseMessage originalResponse)

Parameters

jsonContent string
originalResponse HttpResponseMessage

Methods

GetEntity()

Gets the HTTP content of the response.

public override HttpContent GetEntity()

Returns

HttpContent

GetHeaders()

Gets the HTTP response headers from the original response.

public override HttpResponseHeaders GetHeaders()

Returns

HttpResponseHeaders

The HTTP response headers.

GetJsonContent()

public string GetJsonContent()

Returns

string