Represents an HTTP response to be sent to a client.
This type is used to define the structure of an HTTP response. It includes
necessary information such as status code, response headers, and an optional
response body.
Type declaration
Optionalbody?: string
A string containing the body of the response. Optional.
headers: Record<string,string>
An object representing the HTTP headers. Keys are header names, values are the corresponding header values.
Represents an HTTP response to be sent to a client.
This type is used to define the structure of an HTTP response. It includes necessary information such as status code, response headers, and an optional response body.