nim-codex/dagger
Eric Mastro 26ead9726d [rest api]: improve exception handling for `/connect` and add `content-type` header for `/download`
This PR achieves the following:
1. Improves the exception handling when dialling a peer fails or an unknown error occurs.
2. Add a `Content-Type` header to the `/download` endpoint of `application/octet-stream`, which is [defined by MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#types) as meant to be used for "generic binary data (or binary data whose true type is unknown)".

Co-authored-by: Michael Bradley <michaelsbradleyjr@gmail.com>
2022-02-04 15:38:39 +11:00
..
blockexchange Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
contracts feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
rest [rest api]: improve exception handling for `/connect` and add `content-type` header for `/download` 2022-02-04 15:38:39 +11:00
stores Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
utils Node setup (#32) 2022-01-10 09:32:56 -06:00
blockexchange.nim Rename bitswap (#25) 2021-08-30 13:25:20 -06:00
blocksmanifest.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
blocktype.nim Block.init should return Result (#37) 2022-01-10 20:25:13 -06:00
chunker.nim Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
conf.nim Node setup (#32) 2022-01-10 09:32:56 -06:00
contracts.nim feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
dagger.nim Node setup (#32) 2022-01-10 09:32:56 -06:00
errors.nim Node setup (#32) 2022-01-10 09:32:56 -06:00
manifest.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
node.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
rng.nim Rename bitswap (#25) 2021-08-30 13:25:20 -06:00
stores.nim Node setup (#32) 2022-01-10 09:32:56 -06:00