ReadonlyoptionsPartial configuration for customizing the response.
ReadonlyresponseThe Node.js ServerResponse object to be wrapped.
Sends the HTTP response based on the configured options.
This method:
statusCode and statusMessage if provided.headers if specified.streamFile is defined.body is provided.A promise that resolves to the HTTP status code of the response.
StaticcreateCreates a new ServerResponseWrapper instance.
The Node.js ServerResponse object to be wrapped.
Partial configuration for customizing the response.
A new instance of ServerResponseWrapper.
A wrapper for the GCP Cloud Functions HTTP
ServerResponseto implement theIRawResponseWrapperinterface.This class provides methods for configuring and sending HTTP responses in a consistent and flexible manner. It supports setting status codes, headers, streaming files, or sending raw body content.