MCPcopy
hub / github.com/nestjs/nest / pipe

Method pipe

packages/core/router/sse-stream.ts:73–85  ·  view source on GitHub ↗
(
    destination: T,
    options?: {
      additionalHeaders?: AdditionalHeaders;
      statusCode?: number;
      end?: boolean;
    },
  )

Source from the content-addressed store, hash-verified

71 }
72
73 pipe<T extends WritableHeaderStream>(
74 destination: T,
75 options?: {
76 additionalHeaders?: AdditionalHeaders;
77 statusCode?: number;
78 end?: boolean;
79 },
80 ): T {
81 this._destination = destination;
82 this._statusCode = options?.statusCode ?? 200;
83 this._additionalHeaders = options?.additionalHeaders;
84 return super.pipe(destination, options);
85 }
86
87 /**
88 * Writes SSE headers to the destination if they have not been sent yet.

Callers 15

sseMethod · 0.95
cleanOutputFunction · 0.45
copyMiscFunction · 0.45
moveToNodeModulesFunction · 0.45
moveToSamplesFunction · 0.45
bindMessageHandlersMethod · 0.45
interceptMethod · 0.45
sse-stream.spec.tsFile · 0.45
nextFnMethod · 0.45
interceptMethod · 0.45
transformDeferredMethod · 0.45

Calls

no outgoing calls

Tested by 1

interceptMethod · 0.36