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

Method ssePost

integration/nest-application/sse/src/app.controller.ts:61–63  ·  view source on GitHub ↗
(@Body() body: { content?: string })

Source from the content-addressed store, hash-verified

59
60 @Sse('sse/post', { method: RequestMethod.POST })
61 ssePost(@Body() body: { content?: string }): Observable<MessageEvent> {
62 return of({ data: { content: body.content ?? 'default' } });
63 }
64
65 @Sse('sse/promise-delayed')
66 ssePromiseDelayed(

Callers

nothing calls this directly

Calls 1

BodyFunction · 0.90

Tested by

no test coverage detected