raxx v0.4.1 Raxx.Chunked

Module for handling a response served in chunks.

A chunked response needs to upgrade the Raxx handler. This handler needs to implement the additional handle_info/2 callback.

The chunked handler may be the same module as the request handler.

The contents are itemised below:

handlerThe module that implements the required callbacks to send a response in 1 or more chunks
stateAny state that the handle_info callback might need.
initialTODO The first chunk to be streamed to the client, by default an empty string.
headersTODO Any additional headers to add to the response that is sent to the client.

Summary

Functions

end_chunk()
to_packet(data)
upgrade(app, opts)