@breautek/storm
    Preparing search index...

    Type Alias IHandlerResponse

    IHandlerResponse: ResponseData | ReadableStream | ReadStream | any | void

    IHandlerResponse can actually accept any arbitrary object, however it may do certain things depending on the type of object it receives.

    • If the response object is a stream, it will pipe the stream to stream the HTTP response.
    • If the response is ResponseData, the status code and response data will be passed as the HTTP response.
    • Passing nothing/undefined will return a status code of 204 with no body content
    • Primitive data types will be passed as is
    • Buffers will be passed through
    • Any other object will be passed through JSON.stringify