File tree Expand file tree Collapse file tree 4 files changed +53
-64
lines changed
examples/wasip3-competing-outbound-http-calls Expand file tree Collapse file tree 4 files changed +53
-64
lines changed Original file line number Diff line number Diff line change 11[package ]
2- name = " concurrent -outbound-http-calls"
3- authors = [" itowlson <ivan.towlson @fermyon.com>" ]
2+ name = " competing -outbound-http-calls"
3+ authors = [" mikkelhegn <mikkel.hegnhoj @fermyon.com>" ]
44description = " "
55version = " 0.1.0"
6- rust-version = " 1.90" # required for `wasm32-wasip2` target to build WASIp3
6+ rust-version = " 1.90" # required for `wasm32-wasip2` target to build WASIp3
77edition = " 2021"
88
99[lib ]
Original file line number Diff line number Diff line change 33spin_manifest_version = 2
44
55[application ]
6- name = " concurrent -outbound-http-calls"
6+ name = " competing -outbound-http-calls"
77version = " 0.1.0"
88authors = [" The Spin project" ]
9- description = " Demonstrates making concurrent outbound HTTP calls in WASIp3"
9+ description = " Demonstrates making competing outbound HTTP calls in WASIp3"
1010
1111[[trigger .http ]]
1212route = " /..."
13- component = " concurrent -outbound-http-calls"
13+ component = " competing -outbound-http-calls"
1414executor = { type = " wasip3-unstable" }
1515
16- [component .concurrent-outbound-http-calls ]
17- source = " target/wasm32-wasip2/release/concurrent_outbound_http_calls.wasm"
18- allowed_outbound_hosts = [" https://spinframework.dev" , " https://component-model.bytecodealliance.org/" ]
19- [component .concurrent-outbound-http-calls .build ]
16+ [component .competing-outbound-http-calls ]
17+ source = " target/wasm32-wasip2/release/competing_outbound_http_calls.wasm"
18+ allowed_outbound_hosts = [
19+ " https://spinframework.dev" ,
20+ " https://component-model.bytecodealliance.org/" ,
21+ ]
22+ [component .competing-outbound-http-calls .build ]
2023command = " cargo build --target wasm32-wasip2 --release"
2124watch = [" src/**/*.rs" , " Cargo.toml" ]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use futures::{
1313} ;
1414
1515#[ http_service]
16- async fn handle_concurrent_outbound_http_calls (
16+ async fn handle_competing_outbound_http_calls (
1717 _req : spin_sdk:: http_wasip3:: Request ,
1818) -> impl IntoResponse {
1919 println ! ( "Handling reuqest" ) ;
You can’t perform that action at this time.
0 commit comments