Skip to content

Commit

Permalink
docs: update fetching demo readme (#168)
Browse files Browse the repository at this point in the history
`reqwest` instead of `ureq`
  • Loading branch information
afidegnum authored Jul 30, 2022
1 parent 04eab84 commit 402b36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demos/fetching/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Fetching Example

This examples demonstrates how to interact with a server with Perseus and fetch data on both the server and in the browser. Specifically, this uses `ureq` on the server-side (with Perseus' inbuilt caching mechanism to speed up development builds) and `reqwasm` on the client-side.
This examples demonstrates how to interact with a server with Perseus and fetch data on both the server and in the browser. Specifically, this uses `reqwest` on the server-side (with Perseus' inbuilt caching mechanism to speed up development builds) and `reqwasm` on the client-side.

On the server-side, this will simply fetch the server's IP address, and on the client-side it will fetch the message at `/.perseus/static/message.txt`, automatically served by Perseus from `static/message.txt`. The reason for fetching a file on the same site is to prevent issues with CORS, as documented in the book.

0 comments on commit 402b36e

Please sign in to comment.