Skip to content

Commit bdc9788

Browse files
authored
Merge pull request #202 from itowlson/warn-for-downlevel-hosts
Highlight template for downlevel hosts
2 parents e430b86 + 8b80dc1 commit bdc9788

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

content/v2/http-outbound.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You can find a complete example of using outbound HTTP in the JavaScript SDK rep
112112

113113
> [**Want to go straight to the reference documentation?** Find it here.](https://spinframework.github.io/spin-python-sdk/http/index.html)
114114
115-
HTTP functions and classes are available in the `http` module. The function name is [`send`](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.send). The [request type](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.Request) is `Request`, and the [response type](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.Response) is `Response`. For example:
115+
HTTP functions and classes are available in the `http` module. The function name is [`send`](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.send). The [request type](https://spinframework.github.io/spin-python-sdk/v2/http/index.html#spin_sdk.http.Request) is `Request`, and the [response type](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.Response) is `Response`. For example:
116116

117117
```python
118118
from spin_sdk.http import Request, Response, send

content/v3/http-outbound.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ You can find a complete example of using outbound HTTP in the JavaScript SDK rep
111111

112112
> [**Want to go straight to the reference documentation?** Find it here.](https://spinframework.github.io/spin-python-sdk/v3/http/index.html)
113113
114-
HTTP functions and classes are available in the `http` module. The function name is [`send`](https://spinframework.github.io/spin-python-sdk/v3/http/index.html#spin_sdk.http.send). The [request type](https://spinframework.github.io/spin-python-sdk/http/index.html#spin_sdk.http.Request) is `Request`, and the [response type](https://spinframework.github.io/spin-python-sdk/v3/http/index.html#spin_sdk.http.Response) is `Response`. For example:
114+
HTTP functions and classes are available in the `http` module. The function name is [`send`](https://spinframework.github.io/spin-python-sdk/v3/http/index.html#spin_sdk.http.send). The [request type](https://spinframework.github.io/spin-python-sdk/v3/http/index.html#spin_sdk.http.Request) is `Request`, and the [response type](https://spinframework.github.io/spin-python-sdk/v3/http/index.html#spin_sdk.http.Response) is `Response`. For example:
115115

116116
```python
117117
from spin_sdk.http import Request, Response, send

content/v4/quickstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ You'll need the TinyGo compiler, as the standard Go compiler does not yet suppor
231231
{{card_element "template" "Zola SSG Template" "A template for using Zola framework to create a static webpage" "/hub/preview/template_zola_ssg" "rust" true }}
232232
{{blockEnd}}
233233

234-
Now you are ready to create your first Spin application:
234+
Now you are ready to create your first Spin application.
235+
236+
> The Rust, Go, and Python templates depend on Spin 4 and its support for WASI Preview 3. As Spin 4 is fairly new, some Spin hosts support only Spin 3.x. If you need to target such a host, look for a `http-<lang>-p2` template and use that instead.
235237
236238
{{ tabs "sdk-type" }}
237239

content/v4/writing-apps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ HTTP path: /...
258258

259259
All of these templates create a manifest containing a single component, and the source code for a minimal "hello world" component.
260260

261+
> The Rust, Go, and Python templates depend on Spin 4 and its support for WASI Preview 3. As Spin 4 is fairly new, some Spin hosts support only Spin 3.x. If you need to target such a host, look for a `http-<lang>-p2` template and use that instead.
262+
261263
## Adding a New Component to an Application
262264

263265
To add a new component to an existing application using a template, run the `spin add` command. This works in a very similar way to `spin new`, except that it expects the `spin.toml` file to already exist, and adds the details for the new component to that `spin.toml`.

0 commit comments

Comments
 (0)