sse static method

Response sse(
  1. Stream eventStream, {
  2. int statusCode = HttpStatus.ok,
  3. Map<String, String> headers = const {},
})

Implementation

static Response sse(
  Stream<dynamic> eventStream, {
  int statusCode = HttpStatus.ok,
  Map<String, String> headers = const {},
}) =>
    Response(
      data: eventStream,
      responseType: ResponseType.sse,
      httpStatusCode: statusCode,
      headers: headers,
    );