Skip to main content

compileSegments

Stentor API Reference


Stentor API Reference / stentor-response/src / compileSegments

Function: compileSegments()

Call Signature​

compileSegments(responseOutput, segmentsMap, request, context): string

Defined in: packages/stentor-response/src/compileSegments.ts:84

Compile the response output with provided segments.

Parameters​

responseOutput​

string

segmentsMap​

ResponseSegmentsMap

request​

Request

context​

Context

Returns​

string

Call Signature​

compileSegments(responseOutput, segmentsMap, request, context): ResponseOutput

Defined in: packages/stentor-response/src/compileSegments.ts:90

Compile the response output with provided segments.

Parameters​

responseOutput​

ResponseOutput

segmentsMap​

ResponseSegmentsMap

request​

Request

context​

Context

Returns​

ResponseOutput