@breautek/storm
    Preparing search index...

    Type Alias EventNames

    EventNames:
        | "aborted"
        | "end"
        | "error"
        | "field"
        | "file"
        | "fileBegin"
        | "headerEnd"
        | "headerField"
        | "headersEnd"
        | "headerValue"
        | "partBegin"
        | "partData"
        | "progress"

    Type declaration

    • "aborted"

      Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. After this event is emitted, an error event will follow. In the future there will be a separate 'timeout' event (needs a change in the node core).

    • "end"

      Emitted when the entire request has been received, and all contained files have finished flushing to disk. This is a great place for you to send your response.

    • "error"

      Emitted when there is an error processing the incoming form. A request that experiences an error is automatically paused, you will have to manually call request.resume() if you want the request to continue firing 'data' events.

    • "field"

      Emitted whenever a field / value pair has been received.

    • "file"

      Emitted whenever a field / file pair has been received. file is an instance of File.

    • "fileBegin"

      Emitted whenever a new file is detected in the upload stream. Use this event if you want to stream the file to somewhere else while buffering the upload on the file system.

    • "headerEnd"
    • "headerField"
    • "headersEnd"
    • "headerValue"
    • "partBegin"
    • "partData"
    • "progress"

      Emitted after each incoming chunk of data that has been parsed. Can be used to roll your own progress bar.