Skip to content

Commit 9c1ef0b

Browse files
committed
feat(templates): updates per spin:up/http-trigger@4.0.0
Signed-off-by: Vaughn Dice <vdice@akamai.com>
1 parent 2e6440d commit 9c1ef0b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

templates/http-py/content/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from spin_sdk.http import IncomingHandler, Request, Response
1+
from spin_sdk.http import Handler, Request, Response
22

3-
class WasiHttpIncomingHandler020(IncomingHandler):
4-
def handle_request(self, request: Request) -> Response:
3+
class WasiHttpHandler030Rc20260315(Handler):
4+
async def handle_request(self, request: Request) -> Response:
55
return Response(
66
200,
77
{"content-type": "text/plain"},

templates/http-py/content/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ component = "{{project-name | kebab_case}}"
1313
[component.{{project-name | kebab_case}}]
1414
source = "app.wasm"
1515
[component.{{project-name | kebab_case}}.build]
16-
command = "componentize-py -w fermyon:spin/http-trigger@3.0.0 componentize app -o app.wasm"
16+
command = "componentize-py -w spin:up/http-trigger@4.0.0 componentize app -o app.wasm"
1717
watch = ["*.py", "requirements.txt"]

templates/http-py/metadata/snippets/component.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ component = "{{project-name | kebab_case}}"
55
[component.{{project-name | kebab_case}}]
66
source = "{{ output-path }}/app.wasm"
77
[component.{{project-name | kebab_case}}.build]
8-
command = "componentize-py -w fermyon:spin/http-trigger@3.0.0 componentize app -o app.wasm"
8+
command = "componentize-py -w spin:up/http-trigger@4.0.0 componentize app -o app.wasm"
99
workdir = "{{ output-path }}"
1010
watch = ["*.py", "requirements.txt"]

0 commit comments

Comments
 (0)