Skip to content

update SDK, use wasi-http streaming, etc.#43

Merged
radu-matei merged 6 commits into
spinframework:mainfrom
dicej:composition
Nov 2, 2023
Merged

update SDK, use wasi-http streaming, etc.#43
radu-matei merged 6 commits into
spinframework:mainfrom
dicej:composition

Conversation

@dicej
Copy link
Copy Markdown
Contributor

@dicej dicej commented Oct 30, 2023

The main change is to support streaming so we don't need to buffer each file entirely into memory. This required a bit of refactoring. This also adds deflate and gzip encoding support since it was easy.

I've also added an examples directory to illustrate how to compose the server with applications. Currently, there's just one Rust example, but I'm planning to add more for other languages.

We should probably delay merging this until Spin 2.0 is released, since it requires stable component support.

dicej added 4 commits October 25, 2023 12:25
The main change is to support streaming so we don't need to buffer each file
entirely into memory.  This required a bit of refactoring.

This also adds `deflate` and `gzip` encoding support since it was easy.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Copy link
Copy Markdown
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, manually tested this with a few static-asset-heavy applications and everything LGTM.

Also tested the composition example, which is a great addition!

Thanks!

dicej added 2 commits November 1, 2023 15:42
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@radu-matei radu-matei merged commit 998c464 into spinframework:main Nov 2, 2023
@dicej dicej deleted the composition branch November 2, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants