GenkitHttpResponse class final

A framework-neutral HTTP response, the output of a GenkitHttpHandler.

Header names are lowercase. Streaming responses have no content-length and emit body chunks as the action produces them, so adapters must not buffer the body.

Constructors

GenkitHttpResponse({required int statusCode, Map<String, String> headers = const {}, Stream<List<int>>? body})

Properties

body → Stream<List<int>>
The response body. Can be listened to once.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Response headers with lowercase names.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited