Skip to content

Commit

Permalink
feat: implement the HTTP Request proposal in dfx' bootstrap webserver (
Browse files Browse the repository at this point in the history
…#1483)

And add support for http requests in the base storage canister (with a default to `/index.html`).

This does not support other encodings than `identity` for now (and doesn't even return any headers). This support will be added to the upgraded asset storage canister built in #1482.

Added a test that uses `curl localhost` to test that the asset storage AND the webserver properly support the http requests.

This commit also upgrades tokio and reqwest in order to work correctly. There are also _some_ performance issues noted (this is slower than the `icx-http-server` for some reason), but those are not considered criticals and could be improved later on.

Renamed the `project_name` in our own generated assets to `canister_name`, for things that are generated during canister build (and not project generation).

Ref https://github.com/dfinity/dx-triage/issues/96
  • Loading branch information
hansl committed Mar 11, 2021
1 parent 8417dd5 commit 003a827
Show file tree
Hide file tree
Showing 32 changed files with 823 additions and 300 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
= 0.6.26

== DFX

=== feat: implement the HTTP Request proposal in dfx' bootstrap webserver. +
And add support for http requests in the base storage canister (with a default to `/index.html`).

This does not support other encodings than `identity` for now (and doesn't even return any headers). This support will be added to the upgraded asset storage canister built in #1482.

Added a test that uses `curl localhost` to test that the asset storage AND the webserver properly support the http requests.

This commit also upgrades tokio and reqwest in order to work correctly. There are also _some_ performance issues noted (this is slower than the `icx-http-server` for some reason), but those are not considered criticals and could be improved later on.

Renamed the `project_name` in our own generated assets to `canister_name`, for things that are generated during canister build (and not project generation).

---

= 0.6.25

== DFX
Expand Down
Loading

0 comments on commit 003a827

Please sign in to comment.