build

open override fun build(): ResponseDefinition<P, T>(source)

Constructs a new instance of ResponseDefinition with the configured attributes of the builder.

This method uses the current state of the builder to create a concrete definition of an HTTP response, including the body, content type, status code, headers, delay, and formatter for enhanced response handling.

Return

A new instance of ResponseDefinition containing the response attributes defined in the builder.