2021-11-16 04:02:36 +00:00
|
|
|
# Binary Response Example
|
|
|
|
|
|
|
|
This is a basic example of sending binary response data. It serves an image
|
|
|
|
file as binary data on any URL.
|
|
|
|
|
|
|
|
To run the server, run:
|
|
|
|
|
|
|
|
```bash
|
2021-11-17 05:50:23 +00:00
|
|
|
nix-shell --run 'example BinaryResponse'
|
|
|
|
```
|
|
|
|
|
|
|
|
Or, without nix:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
spago -x test.dhall run --main Examples.BinaryResponse.Main
|
2021-11-16 04:02:36 +00:00
|
|
|
```
|