Files
purescript-httpurple/docs/Examples/Chunked
sigma-andex 345675d5bd Make settings optional
- Add default onStarted and closingHandler
- Use justifill to easily add options
- Remove multiple serve options
2022-05-22 17:37:42 +01:00
..
2022-05-22 17:37:42 +01:00
…

Chunked Example

This is a basic example of sending chunked data. It will return 'hello world' in two separate chunks spaced a second apart on any URL.

To run the example server, run:

nix-shell --run 'example Chunked'

Or, without nix:

spago -x test.dhall run --main Examples.Chunked.Main